so, people not using 'this' assume something not really achievable in terms of 'technology' ?
;)

I cannot decompile to test my sayings, but 'this' adds more bytecode to the file ??

No, if you leave it off, it is added at compile time. Like I said, you can't call methods that aren't members of an object; all functions must be members of some object. AS1/2 allows you to *pretend* like you're calling a method that doesn't belong to an object, but only by assuming that it is a member of the current timeline (which is an object). Similarly, a method call in a class without an object specified will assume that it is of the current scope (this), and add that object reference during compilation (or, technically, just before). The bytecode is exactly the same, except in the (admittedly rare) case where there is a name conflict with a method in a superceding scope, in which case the object reference inserted by the precompiler will point to a different (and probably wrong) object.

ryanm
_______________________________________________
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders



_______________________________________________
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Reply via email to