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

Re: Things to remove

From:
Dan Sugalski
Date:
August 23, 2000 10:36
Subject:
Re: Things to remove
Message ID:
4.3.2.7.0.20000823133019.00ce7df0@24.8.96.48
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.

   freeze_dry &MAIN; :)

I was assuming that when you dumped an object all the anonymous code refs 
and lexically visible variables would get dumped, but package variables 
wouldn't, but that's simple enough to set with parameters, and it'd be 
useful to dump out all code that's visible to the object (all its methods 
and all the user code those methods refer to, perhaps).

A well-thought-out RFC sounds in order.

					Dan

--------------------------------------"it's like this"-------------------
Dan Sugalski                          even samurai
dan@sidhe.org                         have teddy bears and even
                                      teddy bears get drunk




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