Subj : Re: Big problem, please help... To : Cunac From : Brendan Eich Date : Tue Nov 18 2003 03:32 pm Cunac wrote: >>I don't know how you will do it -- please don't hack the engine, thereby >>creating a non-standard and incompatible dialect of the language. >> >>If the global object (the last object on the parent-linked scope chain) >>is not where variables go, then what does go there? If you wish to >>share standard classes (Date, RegExp, etc.), consider linking to a >>"superglobal" via the proto, not the parent, slot. >> >> > >No prob. There are several ideas, for example copying global objects in >local scope and returning values, or disconnection of scope chain, maybe >using ObjectOps, etc. I'll manage something. Thnx. > > Ok, glad it wasn't a big problem after all. I think you might do best by using the proto chain, not the parent chain, and avoid copying, or hacking object ops. /be .