[Grace-core] Fwd: [important] Traits

Timothy Jones tim at zimothy.com
Mon Mar 11 20:49:54 PDT 2013


Sooooo... are traits basically exactly what I suggested with the 
constructor keyword, except with a different name? (Although you have to 
use the keyword 'object' if you want to invoke it in normal code, which 
is a slight difference)

This is basically just class inheritance?

> Q: How do you extend dialects or modules or true?.

Why not both?

     def true = object {
         trait clone { ... }
     }

-- Tim


More information about the Grace-core mailing list