any tool to at least partially convert C++ to D (htod for source

Walter Bright newshound1 at digitalmars.com
Thu Mar 11 18:35:42 PST 2010


Michel Fortin wrote:
> Ah, you're right indeed. I thought it was std.stdiobase that imported 
> std.stdio, but its the reverse so it's a little better.
> 
> Still, std.stdiobase uses this clever external definition to avoid a 
> circular import:
> 
>     extern(C) void std_stdio_static_this();
> 
> This hack is basically just a bypass of the circular dependency check 
> for one module. If more than one module use it, you're at risk of having 
> the behaviour dependent on the link order.

No, the transitive nature of the dependency checking insures it is NOT 
dependent on link order.



More information about the Digitalmars-d mailing list