On Mon, 28 Jun 2010 08:13:21 -0700 "Patrick R. Michaud via RT" <perl6-bugs-follo...@perl.org> wrote: > For a wide variety of reasons, Rakudo currently implements Bool as a > fundamental type rather than an enumeration. As such, Bool.pick is > acting the same as if one had written "Int.pick" or "Num.pick" -- it's > treating the invocant as a list of one element and then returning the > type object directly. And Bool as a type object always returns false > because it is undefined.
Q: Why would the object type be false? I would have thought that Bool.pick and print for ^100 turning into 'Bool' and print for ^100; would print all of the values, rather than printing none of them (admittedly given only one day of Damian's P6 class this assumption may be waaaay off). > For now, the workaround is to do (False,True).pick until we can properly > implement .pick on enumerations, and figure out how to turn Bool into > one (or convince the specification that Bool is not really an > enumeration :-). Actually ^2.pick works nicely also, just seemed odd that Bool.pick didn't. thanx -- Steven Lembark 85-09 90th St. Workhorse Computing Woodhaven, NY, 11421 lemb...@wrkhors.com +1 888 359 3508