Properties don't work as expected

zodd via Digitalmars-d-learn digitalmars-d-learn at puremagic.com
Tue Jul 5 07:26:22 PDT 2016


On Tuesday, 5 July 2016 at 13:37:50 UTC, ketmar wrote:
> you *can* workaround this limitation for now. it won't be the 
> cleanest code in the world, but you can do it. hint: alias this 
> + returning temporary struct with pointer.

Of course, I can. I have been creating a lot of such workarounds 
with C++ for years. And this is one of the flaws of C++ - for 
every simple task (like a delegate or properties) you need to 
create a workaround because C++ standardization Committee thinks 
that it shouldn't be a part of the language.



More information about the Digitalmars-d-learn mailing list