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.
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() {
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
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