Prompted by the recent thread on literals...
This is Rakudo Perl 6, revision 33618 built on parrot 0.8.1-devel

This works:
$ perl6 -e 'say Bool::True.perl'
Bool::True

This doesn't:

$ perl6 -e 'say True.perl'
Method 'perl' not found for invocant of class ''
current instr.: '_block11' pc 26 (EVAL_13:17)
called from Sub 'parrot;PCT;HLLCompiler;eval' pc 892
(src/PCT/HLLCompiler.pir:508)
called from Sub 'parrot;PCT;HLLCompiler;command_line' pc 1441
(src/PCT/HLLCompiler.pir:771)
called from Sub 'parrot;Perl6;Compiler;main' pc 16573 (perl6.pir:166)

Likewise False.  Shouldn't those be the same object?  Why would qualifying
the name give it a different set of methods?

-- 
Mark J. Reed <[EMAIL PROTECTED]>

Reply via email to