On Friday, 20 May 2022 at 14:54:31 UTC, Christopher Katko wrote:
So wait, that means if I have a module with extra stuff like ````D colors.d auto red = // grey ```` and then in my other file ````D auto white = grey(1.0); ```` It won't use CTFE? Why is there a local module requirement?
I'm not sure what you mean by "local module requirement". The static storage class means that a variable will be around for the lifetime of the program (or more specifically in D's case, the lifetime of the thread). Module-scope variables are static by default.