#125 Inheritance syntax

brian Thu 21 Dec 2006

I've updated both the Java and Fan compilers to use the new inhertance syntax of a colon (like C++ and C#) rather than using the extends or mixin keywords. If extending a class, then the compiler requires that it be specified first before any mixins. The "extends" identifier has been freed from the reserved keyword list.

Before:

class Foo extends Base mixin A, B {}

Now:

class Foo : Base, A, B

Login or Signup to reply.