Andrej Mitrovic Wrote: > So in retrospect: > // no error until a call to writefln, > // which could still potentially not fail => possible bugs > string[2] szFormat = ["%s, %s"]; > > // error at runtime, the compiler could have caught this though > static string[2] szFormat2 = ["%s, %s"]; >
Sorry, I've accidentally reversed the two. Fixed: // no error until a call to writefln, // which could still potentially not fail => possible bugs static string[2] szFormat = ["%s, %s"]; // error at runtime, the compiler could have caught this though string[2] szFormat2 = ["%s, %s"];