scala traits == D classes with parameterized base

Andrei Alexandrescu SeeWebsiteForEmail at erdani.org
Wed Apr 1 20:33:45 PDT 2009


In Scala, when you say:

class C extends Super with T

that's exactly as when you say in D:

class C : T!(Super)

where T is a class with a parameterized base:

class T(Base) : Base
{
     ... stuff ...
}

Right?

I wish MI were this simple. Bill claimed it is, and I think he's 
thoroughly wrong.


Andrei



More information about the Digitalmars-d mailing list