← Back to team overview

ooc-dev team mailing list archive

Re: New ORC draft - Properties

 

Huhu,

just added a simple implementation of "virtual properties don't create
instance struct members". As suggested by ndd, I added a `virtual` flag
to `VariableDecl` (parent class of `PropertyDecl`). All variable decls
are non-virtual; but all property decls are virtual by default. If the
actual value is accessed inside the getter or the setter, the property
is considered non-virtual and will create a member in the instance struct.
Since extern getters/setters don't contain value accesses, they won't
create instance struct members either.
See
http://github.com/nddrylliog/rock/commit/7783210ae08780862be64ff75d0a76ee3dc2623b
;-)

So, everything should be working now. Please test ;-)

Cheers,

Friedrich



References