You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Using tight OR for conditional tests is broken when chaining more than two tests (note second and forth test cases below). This is using rakudo (rev a16cde8), below is the version.
chris
Example code:
cjfields$ perl6 -v
This compiler is built with the Parrot Compiler Toolkit, parrot revision 45127.
cjfields$ perl6
say 1 || 1
1
say 0 || 1
1
say 0 || 0 || 1
0
say 0 || 1 || 0 || 0
1
On Tue Mar 23 10:53:37 2010, cjfields@illinois.edu wrote:
Using tight OR for conditional tests is broken when chaining more than
two tests (note second and forth test cases below). This is using
rakudo (rev a16cde8), below is the version.
chris
Example code:
cjfields$ perl6 -v
This compiler is built with the Parrot Compiler Toolkit, parrot
revision 45127.
cjfields$ perl6
say 1 || 1
1
say 0 || 1
1
say 0 || 0 || 1
0
say 0 || 1 || 0 || 0
1
Youch, that's embarrassing! Fixed in d0bf6e3 and added a test.
Migrated from rt.perl.org#73774 (status was 'resolved')
Searchable as RT73774$
The text was updated successfully, but these errors were encountered: