If they are claiming import is similar to with then I'd bet performance would suffer.
The with statement puts the scope defined within it at the end of the scope chain. That means for any variable "imported" with "with", the interpreter has to jump scope all the way to the top every time it can't find that variable in the current scope. That can be very costly in terms of performance (out of scope lookups are one of the most expensive tricks to use in javascript, unless my info is out of date). Of course that's just an observation based on the example code posted at that link - I have no knowledge of the actual implementation. :-) Kevin N. nootropic mlist wrote: > sound interesting..what about performance? > > 2008/5/27 Niels Wolf <[EMAIL PROTECTED] > <mailto:[EMAIL PROTECTED]>>: > > Hey. > > Sorry for spamming but i found this somehow interesting for this list: > http://www.effectgenerator.com/AS3Wrapper/ > > Niels > > > _______________________________________________ > osflash mailing list > [email protected] <mailto:[email protected]> > http://osflash.org/mailman/listinfo/osflash_osflash.org > > > ------------------------------------------------------------------------ > > _______________________________________________ > osflash mailing list > [email protected] > http://osflash.org/mailman/listinfo/osflash_osflash.org > _______________________________________________ osflash mailing list [email protected] http://osflash.org/mailman/listinfo/osflash_osflash.org
