Re: [Rakudo] Enums in setting

2010-05-21 Thread Moritz Lenz
Patrick R. Michaud wrote: > On Wed, May 19, 2010 at 10:55:31PM +0200, Moritz Lenz wrote: >> There could be multiple ways forward: >> 1) rewrite EnumMap in PIR - it's mostly a wrapper around PIR code anyway >> 2) Add another bootstrapping stage: an "early" setting for traits, many >> basic types and

Re: [Rakudo] Enums in setting

2010-05-19 Thread Patrick R. Michaud
On Wed, May 19, 2010 at 10:55:31PM +0200, Moritz Lenz wrote: > There could be multiple ways forward: > 1) rewrite EnumMap in PIR - it's mostly a wrapper around PIR code anyway > 2) Add another bootstrapping stage: an "early" setting for traits, many > basic types and the like, and a "late" setting

[Rakudo] Enums in setting

2010-05-19 Thread Moritz Lenz
Hi, the other day I tried to get enums in the setting working. Currently they complain that sub '!YOU_ARE_HERE' can't be found. That's because the compiler tries to execute the RHS of the enum declaration in the context of the setting. Seems like an easy fix: diff --git a/src/Perl6/Actions.pm b