P T Withington
ptw at pobox.com
Tue Jan 9 07:47:21 PST 2007
On 2007-01-09, at 04:52 EST, Peter Hall wrote:
>> IIRC static data members in Java are inherited but cannot be
>> overridden, which may provide a bit of a catch-22 for #1 and #2?
> Good point. If there is a reason why Java disallows inherited statics
> to be overridden then that reason is likely applicable and a decent
> enough rationale for not inheriting statics at all in ES4...
But is there a reason? Or does Java do that just because C++ did that?
Dylan permits members on class, each-subclass, and instance. They
are all inherited (and all visible through the instance):
Subclasses and instances can give different values to class slots:
(See "Initialization of Class Allocated Slots")
More information about the Es4-discuss