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

chained tight OR comparison broken #1623

Closed
p6rt opened this issue Mar 23, 2010 · 4 comments
Closed

chained tight OR comparison broken #1623

p6rt opened this issue Mar 23, 2010 · 4 comments
Labels

Comments

@p6rt
Copy link

p6rt commented Mar 23, 2010

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

Searchable as RT73774$

@p6rt
Copy link
Author

p6rt commented Mar 23, 2010

From @cjfields

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

@p6rt
Copy link
Author

p6rt commented Mar 25, 2010

From @jnthn

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.

Thanks,

Jonathan

@p6rt
Copy link
Author

p6rt commented Mar 25, 2010

The RT System itself - Status changed from 'new' to 'open'

@p6rt
Copy link
Author

p6rt commented Mar 25, 2010

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

@p6rt p6rt closed this as completed Mar 25, 2010
@p6rt p6rt added the Bug label Jan 5, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant