Now for the cons: - The compilation interface doesn't have any way to be given a bunch of code that includes code in the target language in the beginning, that will consume that, then hand the rest back to us. - This means that the grammar parser has to figure that out itself. - ...until we extend the compilation interface. - It means that we have a more complicated grammar engine (slightly). - It means that we're changing the one bit of perl6 that we just said hadn't been changed much.
It would seem to me that the "right" thing to do is to use the language of the currently running sub, which could be queried easily enough if subs carried along with them the language that they are written in.
Which, since we don't do that now, would seem to be a sensible thing to add to all sub PMCs.
--
Dan
--------------------------------------it's like this------------------- Dan Sugalski even samurai [EMAIL PROTECTED] have teddy bears and even teddy bears get drunk