Destructor order

Marco Leise via Digitalmars-d-learn digitalmars-d-learn at puremagic.com
Thu Oct 23 06:12:49 PDT 2014


Am Thu, 23 Oct 2014 12:15:13 +0000
schrieb "Marc Schütz" <schuetzm at gmx.net>:

> Yet another use case for borrowing.

Cool, how does it keep the original struct alive though, if it
isn't stored anywhere? Or will it error out when you attempt
to use the dangling pointer to the object?

-- 
Marco



More information about the Digitalmars-d-learn mailing list