override '.' member access

Simen kjaeraas simen.kjaras at gmail.com
Tue Jan 25 13:29:32 PST 2011

spir <denis.spir at gmail.com> wrote:

> Hello,
> Cannot find corresponding opSomething method, if any. (opDispatch seems  
> to specialise for method call.)
> Else, how to catch obj.member?

opDispatch is likely what you want. with the @property annotation, it
will readily support obj.member; and obj.member = foo; syntax.


More information about the Digitalmars-d-learn mailing list