www.digitalmars.com         C & C++   DMDScript  

D - Digital Mars D Compiler Beta v0.50 for windows bug.

reply "Eugene Melekhov" <eugene_melekhov mail.ru> writes:
Hi,

The following code

static:
this(){}

Results in:
Assertion failure: '!(sc->stc & STCstatic)' on line 847 in file 'func.c'
abnormal program termination

Another quiestion about the static constructors/destructors.
As I can see from the from the dmd sources the syntax of the static
constructor/destructor
require 'static [~]this...'. Why don't allow placing constructor/destructor
after 'static:'
just as any other static feature?
Dec 04 2002
parent "Walter" <walter digitalmars.com> writes:
Thanks, I'll take care of it.

"Eugene Melekhov" <eugene_melekhov mail.ru> wrote in message
news:askjj1$1u9q$1 digitaldaemon.com...
 Hi,

 The following code

 static:
 this(){}

 Results in:
 Assertion failure: '!(sc->stc & STCstatic)' on line 847 in file 'func.c'
 abnormal program termination

 Another quiestion about the static constructors/destructors.
 As I can see from the from the dmd sources the syntax of the static
 constructor/destructor
 require 'static [~]this...'. Why don't allow placing
constructor/destructor
 after 'static:'
 just as any other static feature?
Well, it's not really 'static' like the other uses of static are.
Dec 04 2002