Re: _Dmodule_ref question

2012-02-05 Thread Iain Buclaw
On 5 February 2012 10:28, Johannes Pfau wrote: > > Is there a reason why _Dmodule_ref can't be defined in a d source file? > - > module test; > > extern(C) > { >    void* _Dmodule_ref = null; >    int printf(in char* format, ...); > >    void main() >    { >        printf("Hell

_Dmodule_ref question

2012-02-05 Thread Johannes Pfau
Is there a reason why _Dmodule_ref can't be defined in a d source file? - module test; extern(C) { void* _Dmodule_ref = null; int printf(in char* format, ...); void main() { printf("Hello, %s!".ptr, "no runtime".ptr); } } -- do