Roldak / SFSL

Statically typed Functionnal Scripting Language
1 stars 0 forks source link

Add traits #28

Open Roldak opened 9 years ago

Roldak commented 9 years ago

And make classes able to inherit from multiple traits :

type Drawable = trait {
    def draw()->unit
}
type Surface = trait {
    def area()->int
}

type Box = class : Drawable, Surface { ... }
Roldak commented 9 years ago

Edit: Comment not relevant anymore