__gshared this()

Manu via Digitalmars-d digitalmars-d at puremagic.com
Tue Jul 22 01:33:46 PDT 2014


On 22 July 2014 18:26, Manu <turkeyman at gmail.com> wrote:

> On 22 July 2014 17:47, David Nadlinger via Digitalmars-d <
> digitalmars-d at puremagic.com> wrote:
>
>> On Tuesday, 22 July 2014 at 07:27:46 UTC, Manu via Digitalmars-d wrote:
>>
>>> But what I need is:
>>>   __gshared this()   // not-thread-local static constructor
>>>
>>
>> "shared static this()" (or the other b way round, can never remember).
>>
>> Cheers,
>> David
>>
>
> Oh wow, I'm an idiot. Not sure how I missed that... and I've even used it
> before in various occasions!
> Sorry for the noise! >_<
>

Might I suggest some helpful error messages in these cases where the user
tries to do something stupid like this? :)
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.puremagic.com/pipermail/digitalmars-d/attachments/20140722/7cf3270f/attachment.html>


More information about the Digitalmars-d mailing list