On Sat Aug 02 13:02:39 2008, pmichaud wrote: > 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' > > [...] > > > > 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. > Yes, indeedy. Fixed in r32329, plus added some tests for this case.
Jonathan