[osflash] AVM2 bytecode
kremens at gmail.com
Mon Oct 24 10:07:34 PDT 2005
On 10/24/05, Nicolas Cannasse <ncannasse at motion-twin.com> wrote:
> "I guess that's used to build the
> 'traits' that are used for faster/typed oo accesses."
> What is meant by 'traits' in this context? I've heard people say AS3 is a
> 'trait-based' language. What does that really mean?
> Jim Kremens
> It means each object instance carry its own prototype that can be muted
> (it's initialy a copy of the class prototype).
> So you can for example rebind a method at runtime.
> It takes also more memory since all fields tables are duplicated for each
> Traits based OO is a single prototype for each class that is *shared*
> between all instances of this class. It can't be muted so you're sure
> binding together the object and its methods. It consumes less memory and
> enable faster accesses for method calls.
> osflash mailing list
> osflash at osflash.org
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the osflash