On Wed, Jul 30, 2008 at 10:53:30PM -0700, Carl Mäsak wrote:
> $ ./perl6 -e 'enum Weekday<Monday Tuesday>; say Monday' # works
> 0
> $  ./perl6 -e 'enum Weekday<Monday Tuesday>; say Monday.perl' # doesn't
> Method 'perl' not found for invocant of class ''
> [...]
> 
> I'm not entirely clear on what I expected to get from the .perl
> method, but I expected it to be there.

This is currently ambiguous in the spec.  The test suite seems
to expect that enums should return things like Weekday::Monday,
but some discussion on irc with TimToady a couple of weeks
ago [1] left it somewhat unresolved.  (Perhaps it's been
resolved since then and I just haven't seen it.)

So, I think this ticket will be waiting on some resolution
of the spec.  We might need to post a query to p6l for
clarification.

[1] http://irclog.perlgeek.de/perl6/2008-07-11#i_389462

Pm

Reply via email to