CTFE in imported static initializers
Steven Schveighoffer
schveiguy at gmail.com
Tue May 14 21:41:48 UTC 2019
On 5/14/19 8:06 PM, kinke wrote:
> On Tuesday, 14 May 2019 at 10:21:23 UTC, Steven Schveighoffer wrote:
>> I too am out of my league when it comes to what's valid here ;)
>
> Valid or not, 1 second is ridiculous, please file a bug. For an
> importing module, it's just an external TLS global. As you mentioned,
> type inference shouldn't need a full evaluation of the initializer, but
> that's not the problem, as `static string moddata = buildModData();`
> doesn't improve anything.
OK, now that I have a compiler developer agreeing, I feel more
comfortable filing ;)
-Steve
More information about the Digitalmars-d-learn
mailing list