On 3/10/10 23:50, Walter Bright wrote:
Jacob Carlborg wrote:
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?
The idea is to eliminate implementation-defined behavior as much as
practical. I don't think it's at all easy for a programmer to look at a
non-trivial static constructor and determine unequivocably that it does
not depend on any imports.
The reason I suggested to add a compiler switch is because I usually
have very simple static constructors.