June 17, 2004 default parameters , mixed modules | ||||
|---|---|---|---|---|
| ||||
// bar.d
module bar;
const char [] BAR_NAME = "barname";
// foo.d
import bar;
class Foo {
char [] name;
this(char [] x = BAR_NAME ) {
name = x;
}
}
CMD:
dmd foo.d bar.d
Segmetation fault
Ideas ?
Charlie
| ||||
Copyright © 1999-2021 by the D Language Foundation
Permalink
Reply