December 04, 2002
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?


December 05, 2002
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.