develooper Front page | perl.perl6.language | Postings from August 2000

Re: Things to remove

From:
Buddha Buck
Date:
August 23, 2000 09:49
Subject:
Re: Things to remove
Message ID:
4.3.2.7.0.20000823123917.00ae6210@armstrong.cse.buffalo.edu
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




nntp.perl.org: Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at ask@perl.org | Group listing | About