FAQ Search Today's Posts Mark Forums Read
» Video Reviews

» Linux Archive

Linux-archive is a website aiming to archive linux email lists and to make them easily accessible for linux users/developers.

» Sponsor

» Partners

» Sponsor

Go Back   Linux Archive > Debian > Debian GCC

LinkBack Thread Tools
Old 05-31-2010, 01:08 AM
Iain Buclaw
Default Bug#583837:

See Order or Static Construction.http://www.digitalmars.com/d/1.0/module.html
Circular dependencies are allowed so long as not both of the modules contain static ctors or dtors, else will result in a runtime exception.

The very simplest example of this is:===a.d===module a;import b;class A {** *static this()*{}}
===b.d===module b;import a;class B {** *static this()*{}}===main.d===void main() {}

I don't think this is really a compiler bug per se, but attached is a patch for torus that should resolve the conflict and still satisfy runtime.

Iain Buclaw

*(p < e ? p++ : p) = (c & 0x0f) + '0';

Thread Tools

All times are GMT. The time now is 07:42 AM.

VBulletin, Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO ©2007, Crawlability, Inc.
Copyright 2007 - 2008, www.linux-archive.org