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

Owner: Nobody
Requestors: pawel.pabian [at]

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

Subject: returns Bool() class instead of False value
Date: Wed, 3 Nov 2010 16:10:24 +0100
To: rakudobug [...]
From: Paweł Pabian <pawel.pabian [...]>
Download (untitled) / with headers
text/plain 801b
[16:05] <bbkr> rakudo: say # how about this one? *.so should always give output as Bool value, compare to "" for example [16:05] <p6eval> rakudo 5f5bae: OUTPUT«Bool()␤» [16:05] <moritz_> well, it is a Bool value :-) [16:06] <colomon> rakudo: say [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::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 infrastructure.

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