in reply to statefulness and Perl
I don't think such a mechanism exist.
One could try to achieve something like that by dumping core and then restarting that, or by serializing Coroutines, plus all lexicals and package variables, and then inventing some clever way to load them again. But I don't think either approach will work very well, and both would be rather much effort to get working.
You might have better luck with smalltalk, which seems to support such things better.
|
|---|