dmd 1.045 / 2.030 release

Walter Bright newshound1 at digitalmars.com
Tue May 12 13:55:34 PDT 2009


bearophile wrote:
> Walter Bright:
>> I suppose at this point we might as well make it official.
> 
> I can see a large number of bugfixes. Lot of work.
> 
> DMD v1.042 compiles my dlibs fine. But if I try to compile them with
> v1.045 the compiler prints before stopping:
> 
> Assertion failure: '0' on line 136 in file 'statement.c'

I need a bugzilla post.


> Can someone explain me a bit the purpose/usefulness of this?

Frank needed it for dwt.


> In future this may change, but at the moment a significant percentage
> of the little programs is single-thread. So if the decrease of
> performance is significant (and I don't know if it is, see below)
> then a compiler switch may be added that defaults all global
> variables to __gshared (and if possible optionally uses simple means
> to try to forbid multi-threaded code).

Therein lies madness. Having compiler switches that alter binary 
interfaces makes life very hard for library developers.

With some minor work on the part of the user, there are ways to address 
all the performance issues. Using __gshared is the easiest.


More information about the Digitalmars-d-announce mailing list