At 04:25 AM 8/30/00 -0400, Bradley M. Kuhn wrote:
>Dan Sugalski wrote:
>
> > 2) Having a mechanism to automagically load in chunks of executable code
> > only when needed would be nice
>
>I would take this one a bit further:
>
> 2a) It should be possible, at compile-time, to detect what chunks will be
> needed and perhaps warn the user that they have gone beyond a subset of
> Perl they sought to stay within.
>
>This is primarily for compiling Perl to be run on embedded devices.
I was thinking of generalizing this so that the parser would pass on to the
bytecompiler (and then to the execution engine, whatever that may be) that
an add-on piece was used.
If the execution engine's really a perl->Java translator, the info could be
used to load in some sort of extra code or library. If the execution
engine's a targeted bytecode saver, it could warn that the extras aren't
available. If the execution engine's just the execution engine then, well,
presumably it'd load in the code. :)
Dan
--------------------------------------"it's like this"-------------------
Dan Sugalski even samurai
[EMAIL PROTECTED] have teddy bears and even
teddy bears get drunk