www.digitalmars.com Home | Search | C & C++ | D | DMDScript | News Groups | index | prev | next
Archives

D Programming
D
D.gnu
digitalmars.D
digitalmars.D.bugs
digitalmars.D.dtl
digitalmars.D.dwt
digitalmars.D.announce
digitalmars.D.learn
digitalmars.D.debugger

C/C++ Programming
c++
c++.announce
c++.atl
c++.beta
c++.chat
c++.command-line
c++.dos
c++.dos.16-bits
c++.dos.32-bits
c++.idde
c++.mfc
c++.rtl
c++.stl
c++.stl.hp
c++.stl.port
c++.stl.sgi
c++.stlsoft
c++.windows
c++.windows.16-bits
c++.windows.32-bits
c++.wxwindows

digitalmars.empire
digitalmars.DMDScript

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

↑ ↓ ← "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
↑ ↓ → "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

 after 'static:'
 just as any other static feature?

Well, it's not really 'static' like the other uses of static are.
Dec 04 2002