Fixing cyclic import static construction problems
Jacob Carlborg
doob at me.com
Fri Nov 30 00:37:20 PST 2012
On 2012-11-29 22:43, Jonathan M Davis wrote:
> They just let you blow your foot off. All static variables can be directly
> initialized at runtime, so it's easy to use variables before they're actually
> initialized. I don't know how they decide what order to run static
> constructors in, but AFAIK, it never worries about circular dependencies.
> We're only running into this problem beacuse we're trying to provide higher
> safety and better guarantees with regards to when and how variables are
> initialized.
I see.
--
/Jacob Carlborg
More information about the Digitalmars-d
mailing list