At 09:37 AM 8/23/00 -0700, Larry Wall wrote:
>Dan Sugalski writes:
>: What I've been hoping for is:
>:
>: 1) The ability to dump the program and its current state out into something
>: that can be reloaded later. (Though filehandles and other
>: external-interface things make this tricky)
>:
>: 2) The ability to dump out a variable and all its attached state into
>: something that can be loaded in later somewhere else.
>
>Now all we have to do is make the program a variable, and the two
>requirements become one.
Perhaps someone should RFC the new special variable &ME, which is
predefined to be the whole program. Who knows? Perhaps it would then make
sense to use @_ at the top level, as if the program was invoked as
"&ME(@ARGV);"...
Of course, someone will the write something like:
#!/usr/bin/perl6
@defaults = ('sensible', 'defaults', 'here');
exit &ME(@defaults) unless $#ARGV;
...
>Larry