On Thu, Feb 20, 2014 at 3:55 PM, Stefan Karpinski <[email protected]>wrote:

> Yes, the syntax for declaration is perfectly doable. The field overloading
> is so that you can have Direction both be a type and write Direction.NORTH.
>

Interesting.. so there will be two types of fields in the generated type:
"NORTH" et al. (overriden), and "n" (storage). So this technique will open
up possibilities akin to static fields in types?

The former field is really not a field, more of a mirage - it's not stored
but appears to be there when you getfield it. Will it appear in names(), or
will that just be storage fields?

Reply via email to