Testing some singleton implementations

Jerry jlquinn at optonline.net
Tue Feb 11 10:21:32 PST 2014


"Andrej Mitrovic" <andrej.mitrovich at gmail.com> writes:

> On Tuesday, 11 February 2014 at 03:43:35 UTC, Daniel Murphy wrote:
>> "Dejan Lekic"  wrote in message news:nvakemdpugwupoqctrtd at forum.dlang.org...
>>> > Don't forget that __gshared static and static __gshared do > different
>>> things!
>>>
>>> Care to elaborate?
>>
>> https://d.puremagic.com/issues/show_bug.cgi?id=4419
>
> Ah, that thing. Yeah this whole issue is rather messy IMO.

Looking at the bug, I see the compiler doesn't implement what the spec
says.  The spec says __gshared implies static.  Is the messiness fixing
the implementation to match the spec, or refining the spec to better
define what should happen?


More information about the Digitalmars-d mailing list