Subj : Re: Is it possible to serialize Continuation function? To : netscape.public.mozilla.jseng From : Attila Szegedi Date : Wed Jan 05 2005 11:03 am On Fri, 31 Dec 2004 19:04:57 +0100, Igor Bukanov wrote: > Everything is possible with enough efforts. For example, Cocoon supports > Java continuation via rewriting JVM bytecode on the fly. OMG, I'm glad I don't have a requirement for *that*. Not that I'm shy of bytecode manipulation, but still it looks like lots of added complexity for a dubious benefit. I have such a situation myself, actually - an "include" mechanism written as a Java method on a host object that'll pull in another script and execute it - while the included script executes, there's native Java code - namely the include() on the stack. However, those included scripts mostly just define new functions, and don't execute any immediately effective code (and in case anybody would attempt such a foolishness as to create a continuation inside an included script, my code detects it and fails fast with an IllegalStateException; problem solved :-) ) Attila. -- home: http://www.szegedi.org weblog: http://www.jroller.com/page/aszegedi Visit Szegedi Butterfly fractals at: http://www.szegedi.org/fractals/butterfly/index.html .