On 12/3/06, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote:
Was reading an interesting explanation of prototype vs fixed property 
inheritance in  the AS3 livedocs.

Although, it was mentioned that in general, its always prefereable to use fixed 
property (regular) inheritance for performance reasons, I was wondering why, or 
when it would make sense to use prototype inheritance...

If you were stuck in 2002.

No, seriously, it might make sense if you needed one or more functions
to be the same between several classes that, for certain reasons,
could not be derived from the same superclass. But there are other
(IMHO, better) ways around this issue: composition + interface, static
methods, etc.

I can't think of any other instances off the top of my head, but there
are probably a few more....
--
T. Michael Keesey
Director of Technology
Exopolis, Inc.
2894 Rowena Avenue Ste. B
Los Angeles, California 90039
--
The Dinosauricon: http://dino.lm.com
Parry & Carney: http://parryandcarney.com
ISPN Forum: http://www.phylonames.org/forum/
_______________________________________________
[email protected]
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com

Reply via email to