-
Notifications
You must be signed in to change notification settings - Fork 1
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
Dying test in S02-literals/allomorphic.t when comparing ComplexStr with infix:<eqv> #5250
Comments
From @usev6This ticket is about two (skipped) tests in S02-literals/allomorphic.t which die on rakudo-j. The (somewhat) golfed code is: $ perl6-j -e 'say < 8+9i > eqv ComplexStr.new(<8+9i>, "8+9i")' # True with rakudo-m $ perl6-j --ll-exception -e 'say < 8+9i > eqv ComplexStr.new(<8+9i>, "8+9i")' |
From @usev6On Thu Apr 21 05:54:59 2016, bartolin@gmx.de wrote:
Actually the same error occurs with $ perl6-j -e 'say < 8+9i >.re' |
From @usev6On Thu Apr 21 11:53:14 2016, bartolin@gmx.de wrote:
Oh, looks like rakudo-j has other problems with the attributes of ComplexStr: $ perl6-j 'say < 8+9i >.im' |
From @peschwaOn Thu Apr 21 12:34:10 2016, bartolin@gmx.de wrote:
The problem here lies somewhere in the generation of the accessors for Complex. We apparently cache the getattr hint for the Attributes in Complex and reuse them whenever we call the generated accessor, which results in an off-by-one error when we call the same generated accessors on a ComplexStr. Perl 6-level workaround would be to turn Note that the same problem doesn't occur with IntStr or NumStr because they don't have auto-generated accessors, and RatStr gets its accessors from the role Rational, which probably gets composed differently and thus avoids the issue. I'm not sure about the details there, to be honest. |
The RT System itself - Status changed from 'new' to 'open' |
From @peschwaOn Sun May 01 08:04:06 2016, peschwa@gmail.com wrote:
Here's a golf of the underlying problem: $ ./perl6-j foo.pl6 $ cat foo.pl6 |
From [Unknown Contact. See original ticket]On Sun May 01 08:04:06 2016, peschwa@gmail.com wrote:
Here's a golf of the underlying problem: $ ./perl6-j foo.pl6 $ cat foo.pl6 |
From @usev6This works now on JVM (fixed by psch++ with Raku/nqp@1344f28130) $ ./perl6-j -e 'say < 8+9i > eqv ComplexStr.new(<8+9i>, "8+9i")' I'm closing this ticket as 'resolved'. |
1 similar comment
From @usev6This works now on JVM (fixed by psch++ with Raku/nqp@1344f28130) $ ./perl6-j -e 'say < 8+9i > eqv ComplexStr.new(<8+9i>, "8+9i")' I'm closing this ticket as 'resolved'. |
@usev6 - Status changed from 'open' to 'resolved' |
Migrated from rt.perl.org#127949 (status was 'resolved')
Searchable as RT127949$
The text was updated successfully, but these errors were encountered: