David L. Nicol writes: > What if perl6 kept it as the default, but allowed any class > to override the object->BOOLEAN accessor which will return > um, a special TRUE and FALSE which only make sens in boolean > contexts? Like: use overload 'bool' => \&my_truth; sub my_truth { 1; # objects of this class are always true } This works in Perl5. Nat
- explicit boolean accessor David L. Nicol
- Re: explicit boolean accessor Nathan Wiger
- Re: explicit boolean accessor Nathan Torkington
- Re: explicit boolean accessor Nathan Wiger
- Re: explicit boolean accessor Nathan Torkington
- Re: explicit boolean accessor Nathan Wiger
- Re: explicit boolean accessor Damian Conway
- Re: explicit boolean accessor David L. Nicol