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.so returns Bool() class instead of False value #2241

Closed
p6rt opened this issue Nov 3, 2010 · 5 comments
Closed

Bool.so returns Bool() class instead of False value #2241

p6rt opened this issue Nov 3, 2010 · 5 comments

Comments

@p6rt
Copy link

p6rt commented Nov 3, 2010

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

Searchable as RT78788$

@p6rt
Copy link
Author

p6rt commented Nov 3, 2010

From @bbkr

[16​:05] <bbkr> rakudo​: say Bool.so # how about this one? *.so should always
give output as Bool value, compare to "Int.so" for example
[16​:05] <p6eval> rakudo 5f5bae​: OUTPUT«Bool()â�¤Â»
[16​:05] <moritz_> well, it is a Bool value :-)
[16​:06] <colomon> rakudo​: say Int.so
[16​:06] <p6eval> rakudo 5f5bae​: OUTPUT«Bool​::Falseâ�¤Â»
[16​:06] <bbkr> hmm, from my spec understanding you should get Bool​::False or
Bool​::True values from .so operator, not Bool class
[16​:07] <moritz_> then it should be False
[16​:07] <bbkr> indeed. should I report?
[16​:07] <moritz_> or fix :-)
[16​:08] <moritz_> rakudo​: say Bool.Bool
[16​:08] <p6eval> rakudo 5f5bae​: OUTPUT«Bool()â�¤Â»
[16​:08] <moritz_> augment class Bool does Abstraction { method Bool { self }
[16​:09] <moritz_> should probably be self ?? True !! False

@p6rt
Copy link
Author

p6rt commented Dec 13, 2010

From @bbkr

Star 2010.11 build

$ perl6 -e 'say Bool.so'
Bool​::False

@p6rt
Copy link
Author

p6rt commented Dec 13, 2010

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

@p6rt
Copy link
Author

p6rt commented Jan 9, 2011

From @Kodiologist

moritz++ fixed this is Rakudo 142d22098 and added a test in
S03-operators/so.t (roast d6f41fbb1bf).

@p6rt
Copy link
Author

p6rt commented Jan 9, 2011

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

@p6rt p6rt closed this as completed Jan 9, 2011
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant