Enum "Inheritance"?

spir denis.spir at gmail.com
Sun Feb 27 06:51:35 PST 2011


On 02/27/2011 07:21 AM, %u wrote:
> Actually, on a second thought, I just noticed that the union method
> *is* extensible, since you're putting things in different unions... I
> think I'll give it a shot, thanks! :)

And you can always "super-compose" unions. This view, in fact, is similar to 
the (famous) OO debate upon composition vs inheritance; but at lower level.
http://en.wikipedia.org/wiki/Composition_over_inheritance

Denis
-- 
_________________
vita es estrany
spir.wikidot.com



More information about the Digitalmars-d mailing list