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

You can hash-index a string in Rakudo #1670

Closed
p6rt opened this issue Apr 7, 2010 · 6 comments
Closed

You can hash-index a string in Rakudo #1670

p6rt opened this issue Apr 7, 2010 · 6 comments
Labels

Comments

@p6rt
Copy link

p6rt commented Apr 7, 2010

Migrated from rt.perl.org#74112 (status was 'resolved')

Searchable as RT74112$

@p6rt
Copy link
Author

p6rt commented Apr 7, 2010

From @masak

<masak> rakudo​: say '16'{'%x'}
<p6eval> rakudo 8c434e​: OUTPUT«1␤»
* masak submits rakudobug
<jnthn> wtf is it parsing that as...
<masak> you tell me.
<jnthn> std​: say '16'{'%x'}
<p6eval> std 30331​: OUTPUT«ok 00​:01 108m␤»
<masak> well, yes, but... :)
<jnthn> I mean, I guess it's just a hash index into a string, but it
shouldn't work...
<masak> no.
<masak> it shouldn't.

@p6rt
Copy link
Author

p6rt commented May 21, 2010

From @bbkr

[15​:02] <bbkr> rakudo​: say '16'{'%x'} # checking if
http://rt.perl.org/rt3/Ticket/Display.html?id=74112 is fixed
[15​:02] <p6eval> rakudo e6863e​: OUTPUT«Method 'postcircumfix​:<{ }>' not
found for invocant of class 'Str'␤current instr.​: '!postcircumfix​:<{ }>'
pc 14645 (src/builtins/Code.pir​:20)␤»
[15​:02] --> ruoso has joined this channel (~ruoso@​187.79.121.37).
[15​:05] <bbkr> looks like fixed, where tests for such case should go str
or blocks-and-statements ?

looks like fixed, but i don't know yet where to put tests.

@p6rt
Copy link
Author

p6rt commented May 21, 2010

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

@p6rt
Copy link
Author

p6rt commented Sep 20, 2011

From @coke

On Fri May 21 06​:07​:03 2010, bbkr wrote​:

[15​:02] <bbkr> rakudo​: say '16'{'%x'} # checking if
http://rt.perl.org/rt3/Ticket/Display.html?id=74112 is fixed
[15​:02] <p6eval> rakudo e6863e​: OUTPUT«Method 'postcircumfix​:<{ }>' not
found for invocant of class 'Str'␤current instr.​: '!postcircumfix​:<{ }>'
pc 14645 (src/builtins/Code.pir​:20)␤»
[15​:02] --> ruoso has joined this channel (~ruoso@​187.79.121.37).
[15​:05] <bbkr> looks like fixed, where tests for such case should go str
or blocks-and-statements ?

looks like fixed, but i don't know yet where to put tests.

Slightly different failure these days​:

00​:10 < [Coke]> rakudo​: say '16'{'%x'}
00​:10 <+p6eval> rakudo cbdd9b​: OUTPUT«Method 'at_key' not found for invocant of
  class 'Str'␤ in method postcircumfix​:<{ }> at
  src/gen/CORE.setting​:1002␤ in <anon> at /tmp/MHZjKseyZi​:1␤ in
  <anon> at /tmp/MHZjKseyZi​:1␤␤»

--
Will "Coke" Coleda

@p6rt
Copy link
Author

p6rt commented Oct 1, 2011

From @moritz

That's the error you get when you try to hash-index anything that isn't
hash-indexable in rakudo, so that's good enough for me.

@p6rt
Copy link
Author

p6rt commented Oct 1, 2011

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

@p6rt p6rt closed this as completed Oct 1, 2011
@p6rt p6rt added the Bug label Jan 5, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant