Ellery Newcomer wrote:
On 03/09/2010 06:15 PM, Walter Bright wrote:
Ellery Newcomer wrote:
I hate the restriction on modules with static constructors and cyclic
dependencies. IMO it's the most patronizing 'feature' D has.
I understand, but the alternative is the essentially random order of
execution that C++ has.
Would you contend that the alternative that I showed above is not random
order?
Doesn't look random to me.
By "random" I mean it is implementation-defined, and in practice it
depends on the order the linker assembles things in, which is not at all
easily controlled.