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
Test for rational literals with hexadecimal numbers fails with "Attempt to divide by zero using div" #3875
Comments
From @usev6I unfudged some of the skipped tests with commit Raku/roast@0aa3fde915 The only test not passing (fudged 'todo') fails because of the following: $ perl6-j -e 'say <0x01/0x02>' This works, though: $ perl6-j -e 'say 0x01/0x02' |
1 similar comment
From @usev6I unfudged some of the skipped tests with commit Raku/roast@0aa3fde915 The only test not passing (fudged 'todo') fails because of the following: $ perl6-j -e 'say <0x01/0x02>' This works, though: $ perl6-j -e 'say 0x01/0x02' |
@usev6 - Status changed from 'new' to 'open' |
From @peschwaOn Thu Jul 09 12:23:19 2015, bartolin@gmx.de wrote:
<psch> m: say <0b01/0b10> Which is to say nqp-j and nqp-m have the same problem, the latter just cheats a tad more convincingly. Decoding of angle-quoted Rat and Complex literals currently happens via coercion methods in the backend (i.e. coerce_{s2n,s2i,n2s,i2s} on JVM in org.perl6.nqp.runtime.Ops, I didn't check what exactly Moar does, but the lack of 0b and 0o literal support strongly suggests a similar cause), in constrast to actual Rat and Complex literals which are constructed by infix:</> and postfix:<i> respectively. Seeing as q:w// at it's core is still a quoting operator and operates on strings I suggest deferring this bug until we have C<val()> and handling the decoding that way. |
From @peschwaOn Sun Aug 16 17:42:39 2015, peschwa@gmail.com wrote:
Some discussion with ShimmerFairy++ followed: < psch> and i'm thinking we're doing wrong in letting the backends handle that conversion |
From @usev6The code examples from this ticket work now: $ perl6-j -e 'say <0x01/0x02>' $ perl6-j -e 'say <0b01/0b10>' There are passing tests in S02-literals/numeric.t I'm closing this ticket as 'resolved'. |
1 similar comment
From @usev6The code examples from this ticket work now: $ perl6-j -e 'say <0x01/0x02>' $ perl6-j -e 'say <0b01/0b10>' There are passing tests in S02-literals/numeric.t I'm closing this ticket as 'resolved'. |
@usev6 - Status changed from 'open' to 'resolved' |
Migrated from rt.perl.org#124559 (status was 'resolved')
Searchable as RT124559$
The text was updated successfully, but these errors were encountered: