Is this a bug in dmd 2.067 for struct initializers?

ketmar via Digitalmars-d-learn digitalmars-d-learn at puremagic.com
Sun Feb 22 20:04:08 PST 2015


On Mon, 23 Feb 2015 02:15:08 +0000, stewarth wrote:

> On Monday, 23 February 2015 at 02:10:09 UTC, amber wrote:
>> On Sunday, 22 February 2015 at 23:17:33 UTC, Martin Nowak wrote:
>>> On Thursday, 19 February 2015 at 22:07:55 UTC, stewarth wrote:
>>>> I've gone with "static this()" approach and it works.
>>>
>>> You should use shared static this to initialize immutable variables.
>>
>> OK, thanks a lot for the help.
>>
>> Cheers,
>> Stew
> 
> Oops, replied under my friends account ... sorry for the confusion.
> 
> I am assuming this is only if I have more than one thread?

do not count on that. even if *you* never create additional threads, any 
library can. it's better to always remember that you don't control all 
execution pathes then be sorry later.
-------------- 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-learn/attachments/20150223/2970c287/attachment.sig>


More information about the Digitalmars-d-learn mailing list