While S02 reserves some all caps names, I assume that all lower case class
names are okay (I don't see anything against them).  Rakudo doesn't support
them.  Is this a bug or is there something in the synopsis that I've missed.

Here is my example:

class Test { has $.x; }
class test { has $.x; }

Test.new(:x<3>);
test.new(:x<3>);

It produces:

sully:perl6 stephensimmons$ perl6 experiment/class_capitalization.p6
invoke() not implemented in class 'test'
current instr.: '_block11' pc 42 (EVAL_13:18)
called from Sub 'parrot;PCT::HLLCompiler;eval' pc 806
(src/PCT/HLLCompiler.pir:481)
called from Sub 'parrot;PCT::HLLCompiler;evalfiles' pc 1078
(src/PCT/HLLCompiler.pir:610)
called from Sub 'parrot;PCT::HLLCompiler;command_line' pc 1257
(src/PCT/HLLCompiler.pir:699)
called from Sub 'parrot;Perl6::Compiler;main' pc 15522 (perl6.pir:172)

Stephen Simmons

Reply via email to