inheriting statics

Nicolas Cannasse ncannasse at motion-twin.com
Sun Jan 7 09:27:41 PST 2007


> What was the rationale when deciding not to inherit static members?
> 
> http://developer.mozilla.org/es4/spec/chapter_9_classes.html#static_methods

It's actually pretty logical. Since inheritance does not apply to static
members, giving an access to them through subclasses make people
misunderstand what's really a static.

See "The Class Duality" part in haXe Typesystem documentation :
http://haxe.org/doc/types


Nicolas



More information about the Es4-discuss mailing list