Re: Array appending segfaults

2011-10-29 Thread Jesse Phillips
On Sat, 29 Oct 2011 18:37:18 +0200, Artur Skawina wrote: > Tried D today for the very first time, and the first program started > segfaulting soon enough... The simplified version is this: Not of much help, but I'm no reproducing it with DMD 2.056 Debian amd64.

Array appending segfaults

2011-10-29 Thread Artur Skawina
Tried D today for the very first time, and the first program started segfaulting soon enough... The simplified version is this: - import core.thread; import std.stdio; class MyThread : Thread { this() { super(&run); } private: string s = "abcdefg"; void run() {

Re: Fake global associative array literals

2011-10-29 Thread Jonathan M Davis
On Saturday, October 29, 2011 05:20:35 bearophile wrote: > Nick Sabalausky: > > You generally need to be very careful about adding module/static ctors, > > because they can easily lead to the dreaded circular ctor runtime error. > > So as nice as it would be to use AA initializers at the module-lev

Re: Fake global associative array literals

2011-10-29 Thread bearophile
Nick Sabalausky: > You generally need to be very careful about adding module/static ctors, > because they can easily lead to the dreaded circular ctor runtime error. So > as nice as it would be to use AA initializers at the module-level, this > carries a hidden danger which could be a royal PIT