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

Martin Nowak code at dawg.eu
Mon Nov 2 15:28:12 PST 2015


What if I want to use an existing (GC) class as ref counted, something
like core.thread.Thread? Tacking @rc on it would break some existing
code, but not doing it requires the GC.
Same goes for specifying an allocator to use with a ref counted class.
It seems like a much better idea to decide that when using the class as
opposed to when implementing the class.

-------------- 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/20151103/ea45cc24/attachment.sig>


More information about the Dlang-study mailing list