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

No runtime error on some combinations of infix:<R~> and assignment to a readonly value in Rakudo #2415

Closed
p6rt opened this issue Jun 22, 2011 · 4 comments

Comments

@p6rt
Copy link

p6rt commented Jun 22, 2011

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

Searchable as RT93350$

@p6rt
Copy link
Author

p6rt commented Jun 22, 2011

From @masak

<TimToady> perl6​: my @​array = <a b c>; @​array XR~= 'X'; say @​array;
<p6eval> niecza v6-177-g365e216​: OUTPUT«Unhandled exception​: Unable to
resolve method ctxzyg [...]
<p6eval> ..rakudo 7175e5​: OUTPUT«a b c␤»
<p6eval> ..pugs​: OUTPUT«*** ␤ Unexpected "XR" [...]
<masak> hm. how does Rakudo parse that?
<pmichaud> rakudo parses it exactly the way it reads :)
<TimToady> probably XR[
=]
<masak> why isn't that an erroneous modification of a constant?
<TimToady> maybe that's why niecza blows up on it
* masak submits rakudobug
<TimToady> if so, message is LTA
<jnthn> may be a lack of decontainerization somewhere
<masak> rakudo​: my $a = 'a'; $a R~= 'X'; say $a
<p6eval> rakudo 7175e5​: OUTPUT«Cannot modify readonly value␤ in
'&infix​:<=>' [...]
<masak> rakudo​: my $a = 'a'; $a XR~= 'X'; say $a
<p6eval> rakudo 7175e5​: OUTPUT«a␤»
<jnthn> rakudo​: ('a' R~ 'b') = 1
<p6eval> rakudo 7175e5​: ( no output )
<jnthn> golfd.
<masak> jnthn++

@p6rt
Copy link
Author

p6rt commented Jul 1, 2011

@pmichaud - Status changed from 'new' to 'open'

@p6rt
Copy link
Author

p6rt commented Sep 26, 2011

From @moritz

Fixed and tested in S03-metaops/reverse.t.

@p6rt
Copy link
Author

p6rt commented Sep 26, 2011

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant