Skip Menu |
Report information
Id: 78788
Status: resolved
Priority: 0/
Queue: perl6

Owner: Nobody
Requestors: pawel.pabian [at] implix.com
Cc:
AdminCc:

Severity: (no value)
Tag: (no value)
Platform: (no value)
Patch Status: (no value)
VM: (no value)



Subject: Bool.so returns Bool() class instead of False value
Date: Wed, 3 Nov 2010 16:10:24 +0100
To: rakudobug [...] perl.org
From: Paweł Pabian <pawel.pabian [...] implix.com>
Download (untitled) / with headers
text/plain 801b
[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
Star 2010.11 build $ perl6 -e 'say Bool.so' Bool::False
moritz++ fixed this is Rakudo 142d22098 and added a test in S03-operators/so.t (roast d6f41fbb1bf).


This service is sponsored and maintained by Best Practical Solutions and runs on Perl.org infrastructure.

For issues related to this RT instance (aka "perlbug"), please contact perlbug-admin at perl.org