On Sun Jan 25 04:44:47 2009, masak wrote: > Rakudo r35994: > > $ perl6 -e 'Hash.new( a => "b" )' > $ perl6 -e 'Hash.new( "a" => "b" )' > argument doesn't hash > [...] > I figured this would be easy to fix, but it's not. Basically, because for infix:=> we could have any complex expression that generates a key on the RHS, and Parrot does not allow us to pass named arguments where the name is from a register rather than from a string constant. I've run into this one before...probably last time I tried to fix this... :-|
Any input from the Parrot side would be good on if we can change this...otherwise I don't see how we can resolve this ticket easily (I can of course build a Hash for the one argument and then set .flatten(1) on it, which may be a good workaround...but not quite sure we want to do that...I can though if pmichaud feels it's the way to go for now.) Jonathan