Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

.fmt{%x} conversion broken for strings #1711

Closed
p6rt opened this issue Apr 23, 2010 · 4 comments
Closed

.fmt{%x} conversion broken for strings #1711

p6rt opened this issue Apr 23, 2010 · 4 comments

Comments

@p6rt
Copy link

p6rt commented Apr 23, 2010

Migrated from rt.perl.org#74600 (status was 'rejected')

Searchable as RT74600$

@p6rt
Copy link
Author

p6rt commented Apr 23, 2010

From @ShimmerFairy

[20​:47​:16] <lue <#lue>> rakudo​: say "8192".fmt{'%x'} <##wrong>

[20​:47​:18] <p6eval <#p6eval>> rakudo 395433​: OUTPUT«8?»

[20​:47​:35] <lue <#lue>> o-.o

[20​:48​:02] * lue <#lue> submits rakudobug (that's not what 0d8192 is in hex)

Actually, 0d8192 should be 0x2000 and therefore output 2000, not 8 :)

--
Don't Panic!

@p6rt
Copy link
Author

p6rt commented Apr 23, 2010

From @moritz

you are doing it wrong - .fmt is a normal method and should be called
with round parenthesis.

RT #​74112 already tracks the problem that strings are hash-indexable.

@p6rt
Copy link
Author

p6rt commented Apr 23, 2010

The RT System itself - Status changed from 'new' to 'open'

@p6rt
Copy link
Author

p6rt commented Apr 23, 2010

@moritz - Status changed from 'open' to 'rejected'

@p6rt p6rt closed this as completed Apr 23, 2010
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant