December 04, 2002 Digital Mars D Compiler Beta v0.50 for windows bug. | ||||
---|---|---|---|---|
| ||||
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 Re: Digital Mars D Compiler Beta v0.50 for windows bug. | ||||
---|---|---|---|---|
| ||||
Posted in reply to Eugene Melekhov | 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. |
Copyright © 1999-2021 by the D Language Foundation