Subj : Re: Is it possible to serialize Continuation function? To : Andrei Tchijov From : Igor Bukanov Date : Sat Jan 01 2005 12:45 am Andrei Tchijov wrote: > I can see why it is impossible (difficult) to implement Continuation > which will work transparently for Java Script and Java. I guess the > whole issue might be avoided, if somehow Java Script will allow to > define Host Objects in Java Script. In this case, it will be possible > to create "Java Script" wrapper around Java so we never need to > "Continue" from inside Java. So the question is (and please forgive me > for my ignorance if it is a silly question), is it possible to define > host object in Java Script. I guess what I am saying is : Can I > construct Java Script Object "A" such that each time someone trying to > access property "x" of this object Java Script function "getX" gets > invoked. Rhino does not support JS getters/setters that SpiderMonkey provides and which are part of EcmaScript-2 proposals. So for now you have to stick with calling methods explicitly if you want continuations. Regards, Igor .