any tool to at least partially convert C++ to D (htod for source
Jacob Carlborg
doob at me.com
Wed Mar 10 13:43:35 PST 2010
On 3/10/10 19:14, Walter Bright wrote:
> Jacob Carlborg wrote:
>> I've always wonder why that is. I mean if I put an empty static
>> constructor in two modules and they import each other I get a circular
>> reference error. Usually when I use static constructors they don't
>> depend on the order of each other. Can't this be fixed if the static
>> constructors don't depend on each other?
>
>
> I don't know if there's a reasonable way of determining if they depend
> on each other, so dmd assumes they do.
I suspected that. How dangerous would it be with a compiler option that
allowed the above and the programmer have to make sure that they don't
depend on each other?
More information about the Digitalmars-d
mailing list