Yes everything you say makes perfect sense. I misspoke a little bit yesterday, or misthought. There are two paths to javascript, creating the global object in the first place, and then activating js later, which always calls jSyncup to get things ready. But aha, raii won't work here. jSyncup calls and sets everything up and returns. Then all the other js functions are called. Set the compartment via raii in jSyncup, and when it returns your compartment is lost. We can only simplify things if there is a straight, old fashioned "set this compartment" call, that does not involve scope or distructors etc. I don't know if such a function exists. If yes then we can clean things up a lot. If no then we can't.
Karl Dahlke _______________________________________________ Edbrowse-dev mailing list [email protected] http://lists.the-brannons.com/mailman/listinfo/edbrowse-dev
