Possible @property compromise

TommiT tommitissari at hotmail.com
Thu Jan 31 17:53:04 PST 2013


On Friday, 1 February 2013 at 00:59:47 UTC, Zach the Mystic wrote:
> writeln(foo.n); // uses alias this to call __mightAsWellBeOpGet

No it won't. It will print "n()".

And that exactly (passing to a templated parameter) is the 
insurmountable problem in using a variable to represent a 
property.


More information about the Digitalmars-d mailing list