Boolean#perl

[email protected] ("Mark J. Reed")
Newsgroups perl.perl6.internals
Message-ID <[email protected]>
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]>
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.