Subj : Re: Big problem, please help... To : netscape.public.mozilla.jseng From : "Cunac" Date : Mon Nov 17 2003 10:21 am > Not quite: with JSOPTION_VAROBJFIX, both explicitly declared global > variables (var x) and implicit ones (x = 42 where no x exists yet in the > scope chain) both go in the last object on the parent-linked scope > chain. Without that option, explicit globals go in the first object on > the scope chain, while implicit globals go on the last. > > What you want (both explicitly and implicitly declared globals go in the > first object on the scope chain) is nowhere specified in ECMA-262. > > Why do you think you want such a thing? I have need of that feature to simplify scope handling (one scope-one object, sharing some global scope variables, but restricting one scope to create variables only in its own space). This is simple feature to implement, so I guessed that there is a override. No matter, I will do it on a hard way.... Thnx for your time! .