Properties don't work as expected
zodd via Digitalmars-d-learn
digitalmars-d-learn at puremagic.com
Wed Jul 6 03:25:44 PDT 2016
On Wednesday, 6 July 2016 at 09:48:59 UTC, Lodovico Giaretta
wrote:
> Nice work.
> Personally, I'd do it this way: http://pastebin.com/38n0fEtF
> This way:
> - instead of 4 pointers (2 per delegate), the wrapper only
> contains 1 pointer;
> - once written, it only requires one line per property to be
> used;
> - it creates many more instantiations, which may be a Bad
> Thing(tm).
Thank you for a great example! D's power still surprises me a lot.
More information about the Digitalmars-d-learn
mailing list