[perl #132327] Floating-point literal in sink context changes the result of further expressions

2017-10-20 Thread via RT
# New Ticket Created by Victor ADAM # Please include the string: [perl #132327] # in the subject line of all future correspondence about this issue. # https://rt.perl.org/Ticket/Display.html?id=132327 > How to reproduce perl6 -e '$_ = 1e-1 + 2e-1; 3e-1; say $_ == 3e-1'

[perl #132327] Floating-point literal in sink context changes the result of further expressions

2017-10-20 Thread Zoffix Znet via RT
On Fri, 20 Oct 2017 07:15:41 -0700, victor.a...@derpymail.org wrote: > How to reproduce > > > perl6 -e '$_ = 1e-1 + 2e-1; 3e-1; say $_ == 3e-1' > > perl6 -e '$_ = 1e-1 + 2e-1; .3e0; say $_ == 3e-1' > > Expected behavior > - > > Both scripts should give the same

[perl #132327] Floating-point literal in sink context changes the result of further expressions

2017-10-20 Thread Zoffix Znet via RT
On Fri, 20 Oct 2017 07:15:41 -0700, victor.a...@derpymail.org wrote: > How to reproduce > > > perl6 -e '$_ = 1e-1 + 2e-1; 3e-1; say $_ == 3e-1' > > perl6 -e '$_ = 1e-1 + 2e-1; .3e0; say $_ == 3e-1' > > Expected behavior > - > > Both scripts should give the same