[Dlang-study] [lifetime] Few root decisions to take on RC classes

Martin Nowak code at dawg.eu
Fri Nov 6 09:52:08 PST 2015


On 11/02/2015 10:54 PM, Timon Gehr wrote:
> Simple examples:
> 
> C id(@noescape C x){ return x; }

We don't need anything like that, our problem is that a called instance
method can escape `this` or a `field`.
If you want to borrow a class reference with limited lifetime to some
other function you can use a non-copyable wrapper (similar to Proxy).

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 819 bytes
Desc: OpenPGP digital signature
URL: <http://lists.puremagic.com/pipermail/dlang-study/attachments/20151106/cbf3bf8a/attachment.sig>


More information about the Dlang-study mailing list