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

Bool enum values don't smartmatch against Int in Rakudo #1486

Closed
p6rt opened this issue Feb 6, 2010 · 6 comments
Closed

Bool enum values don't smartmatch against Int in Rakudo #1486

p6rt opened this issue Feb 6, 2010 · 6 comments
Labels

Comments

@p6rt
Copy link

p6rt commented Feb 6, 2010

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

Searchable as RT72580$

@p6rt
Copy link
Author

p6rt commented Feb 6, 2010

From @masak

<TimToady> rakudo​: enum X <a b c>; say a ~~ Int; say True ~~ Int # buglet
<p6eval> rakudo 1d4928​: OUTPUT«1␤0␤»
<jnthn> Aye.
<jnthn> Quick! Masak!
<jnthn> :-)
<masak> what? what? :)
* masak submits TimToady++'s rakudobuglet
<masak> oh, I see now! True is (supposed to be) an enum too.
<masak> an enum value.
<TimToady> yeah

@p6rt
Copy link
Author

p6rt commented Jan 31, 2011

From @coke

On Sat Feb 06 08​:22​:31 2010, masak wrote​:

<TimToady> rakudo​: enum X <a b c>; say a ~~ Int; say True ~~ Int # buglet
<p6eval> rakudo 1d4928​: OUTPUT«1␤0␤»
<jnthn> Aye.
<jnthn> Quick! Masak!
<jnthn> :-)
<masak> what? what? :)
* masak submits TimToady++'s rakudobuglet
<masak> oh, I see now! True is (supposed to be) an enum too.
<masak> an enum value.
<TimToady> yeah

The output has changed to​:

01​:21 <[Coke]> rakudo​: enum X <a b c>; say a ~~ Int; say True ~~ Int # buglet
01​:21 <p6eval> rakudo 549d2a​: OUTPUT«Bool​::True␤Bool​::False␤»

but the second value should be true too.

--
Will "Coke" Coleda

@p6rt
Copy link
Author

p6rt commented Jan 31, 2011

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

@p6rt
Copy link
Author

p6rt commented Nov 15, 2012

From @bbkr

2012.10 - still broken

$ perl6 -e 'enum X <a b c>; say a ~~ Int; say True ~~ Int'
True
False

@p6rt
Copy link
Author

p6rt commented Nov 23, 2015

From @jnthn

On Thu Nov 15 05​:08​:56 2012, bbkr wrote​:

2012.10 - still broken

$ perl6 -e 'enum X <a b c>; say a ~~ Int; say True ~~ Int'
True
False

Fixed now; nine++ did the majority of the hard work, and I cleaned up the last few issues just now and merged the work and spectest updates, including coverage added in S02-types/bool.t.

/jnthn

@p6rt p6rt closed this as completed Nov 23, 2015
@p6rt
Copy link
Author

p6rt commented Nov 23, 2015

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

@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