Re: static init cycle detection problem

2012-09-24 Thread Steven Schveighoffer
On Wed, 19 Sep 2012 16:25:46 -0400, Øivind oivind@gmail.com wrote: I am struggeling to get around the cycle detection kicking in when I have static init in modules that depend on eachother. I have seen some threads on 'fixes' for this, e.g. adding a @standalone property to the module

Re: static init cycle detection problem

2012-09-20 Thread Øivind
On Thursday, 20 September 2012 at 00:23:33 UTC, Jonathan M Davis wrote: On Wednesday, September 19, 2012 22:25:46 Øivind wrote: I am struggeling to get around the cycle detection kicking in when I have static init in modules that depend on eachother. I have seen some threads on 'fixes' for

Re: static init cycle detection problem

2012-09-20 Thread Jonathan M Davis
On Thursday, September 20, 2012 20:49:32 Øivind wrote: Thanks for the explination. The trick you talk about has worked for me before, but now I really need static init of modules that depend on eachother. Only solution I can think of is to list all modules in a script and generate d code from

Re: static init cycle detection problem

2012-09-20 Thread Brad Roberts
On Thu, 20 Sep 2012, Jonathan M Davis wrote: On Thursday, September 20, 2012 20:49:32 ?ivind wrote: Thanks for the explination. The trick you talk about has worked for me before, but now I really need static init of modules that depend on eachother. Only solution I can think of is to list

static init cycle detection problem

2012-09-19 Thread Øivind
I am struggeling to get around the cycle detection kicking in when I have static init in modules that depend on eachother. I have seen some threads on 'fixes' for this, e.g. adding a @standalone property to the module or similar. Has there been any progress on this? If not would it be

Re: static init cycle detection problem

2012-09-19 Thread Simen Kjaeraas
On Wed, 19 Sep 2012 22:25:46 +0200, Øivind oivind@gmail.com wrote: I am struggeling to get around the cycle detection kicking in when I have static init in modules that depend on eachother. I have seen some threads on 'fixes' for this, e.g. adding a @standalone property to the module

Re: static init cycle detection problem

2012-09-19 Thread Øivind
On Wednesday, 19 September 2012 at 20:56:17 UTC, Simen Kjaeraas wrote: On Wed, 19 Sep 2012 22:25:46 +0200, Øivind oivind@gmail.com wrote: I am struggeling to get around the cycle detection kicking in when I have static init in modules that depend on eachother. I have seen some threads

Re: static init cycle detection problem

2012-09-19 Thread Øivind
Another way of approaching this would be if I could feed a list of modules into DMD during compile time. In C++, i would be able to do this by passing a define to g++ on the command line when invoking it. Is it possible to do something similar with DMD? E.g. create a list of modules before

Re: static init cycle detection problem

2012-09-19 Thread Jonathan M Davis
On Wednesday, September 19, 2012 22:25:46 Øivind wrote: I am struggeling to get around the cycle detection kicking in when I have static init in modules that depend on eachother. I have seen some threads on 'fixes' for this, e.g. adding a @standalone property to the module or similar. Has