A basic idea is to return a wrapper, which can, in turn, call getter/setter functions.
So, I've created a simple wrapper template to achieve what I
want. It reminds me of the C++ - a bunch of additional code to
solve a simple problem (which shouldn't be an issue at all). I'm
a newbie in D thus I could do something wrong or nonoptimal.
Please, criticize my code: http://pastebin.com/XTtXaTAR
- Re: Properties don't work as ... Steven Schveighoffer via Digitalmars-d-learn
- Re: Properties don't work as ... zabruk70 via Digitalmars-d-learn
- Re: Properties don't wor... H. S. Teoh via Digitalmars-d-learn
- Re: Properties don't wor... ketmar via Digitalmars-d-learn
- Re: Properties don't wor... zodd via Digitalmars-d-learn
- Re: Properties don't... Lodovico Giaretta via Digitalmars-d-learn
- Re: Properties d... zodd via Digitalmars-d-learn
- Re: Properti... ketmar via Digitalmars-d-learn