At 03:47 PM 8/23/00 -0400, David Corbin wrote:
>Tom Christiansen wrote:
> >
> > >2) The ability to dump out a variable and all its attached state into
> > >something that can be loaded in later somewhere else.
> >
> > To hope to do this completely and correctly is courageous.
> >
> >     my @funx = ();
> >     for my $name (qw/violet purple cream/) {
> >         push @funx, sub {
> >             print "I'll take a $name one, please, with @_.\n";
> >         };
> >     }
> >
><snip>
> > --tom
>Or consider this pseudo code -
>         open file
>         lock file
>
>         dump file
>
>         <file gets removed>

Yup. That falls into the whole "files and external things make this tricky" 
category. Also applies to shared memory segments, database connections, 
files in general...

There is no good guaranteed way to make this work. I'm all up for punting, 
since presumably the programmer writing the code doing the freezing has 
some clue as to what's going on.

                                        Dan

--------------------------------------"it's like this"-------------------
Dan Sugalski                          even samurai
[EMAIL PROTECTED]                         have teddy bears and even
                                      teddy bears get drunk

Reply via email to