On 10 Feb 2006, at 17:12, Jason Kinzer wrote: Hi, Noticed something a bit odd (am using Scala2), here is a minimal test case:
<snip: code that tries to access an inherited static member>
Is this a bug or intended behavior?
As far as I know, this is consistent with how it works in Java: static members aren't inherited. So I guess that it's intended to work this way.
However, IMO, this is a pity: I think Smalltalk's 'compatibility metaclass'-approach (or better yet, the ObjVLisp approach, where you can also explicitly specify metaclasses that are specific to one class) is far more elegant (although not straightforward to implement in a JVM environment, I guess).
(Now we're on the subject of metaclasses, let me plug one of my favourite papers of 2005: A Core Calculus of Metaclasses by Sam Tobin-Hochstadt and Eric Allen.
regards, adriaan |