A Refcounted Array Type

ketmar via Digitalmars-d digitalmars-d at puremagic.com
Thu Feb 26 16:34:26 PST 2015


On Thu, 26 Feb 2015 18:04:28 -0500, Steven Schveighoffer wrote:

>> That's true. However, what if the destructors access global
>> (thread-local) variables? Is that already disallowed?
> 
> Hm... I don't know. Is it "disallowed?" I don't think so (a simple test
> would suffice), but if any code exists today that does it, it's very
> very wrong :) I would suspect that such code should be banned.

but what if i'm doing memory managing myself and i *know* that it's ok to 
use thread-locals in my destructor?
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 181 bytes
Desc: not available
URL: <http://lists.puremagic.com/pipermail/digitalmars-d/attachments/20150227/5184f05c/attachment.sig>


More information about the Digitalmars-d mailing list