On Wed, Jul 30, 2008 at 10:46:27PM -0700, Carl Mäsak wrote: > $ svn info | grep Revi > Revision: 29902 > > $ ./perl6 -e 'enum Weekday<Monday Tuesday>;' # works > $ ./perl6 -e 'enum Weekday<Monday>;' # doesn't > get_pmc_keyed() not implemented in class 'Perl6Str' > [...] > > Likewise, > > $ ./perl6 -e 'enum <A B C>' # works > $ ./perl6 -e 'enum <A>' # doesn't > get_pmc_keyed() not implemented in class 'Perl6Str' > [...] > > It might be that enums of only one element are so degenerate that they > are disallowed syntactically, but I don't see are reason for that. > Even in that case, it's the wrong error.
I suspect the problem is that the enum code is expecting the angles to always return a List. Instead it should probably be evaluating what it gets in list context. Pm