returning struct, destructor

kinke via Digitalmars-d-learn digitalmars-d-learn at puremagic.com
Wed Dec 21 10:47:04 PST 2016


On Wednesday, 21 December 2016 at 18:02:54 UTC, bauss wrote:
> It removes an unnecessary allocation for the returning copy of 
> the struct, as the return value is never used. Hence why it's 
> pointless that it would be compiled anyway.

That's incorrect, it doesn't have anything to do with the return 
value being used or not.


More information about the Digitalmars-d-learn mailing list