May 20, 2022 Re: template? mixin? template mixins? for modifying a struct setup | ||||
---|---|---|---|---|
| ||||
Posted in reply to Christopher Katko | On Friday, 20 May 2022 at 14:54:31 UTC, Christopher Katko wrote:
>> If the declarations are at module scope, `static` has no effect, and CTFE will be used for initialization.
>
> It won't use CTFE? Why is there a local module requirement?
"module scope" just means at the top level in a module. so not inside a function.
|
Copyright © 1999-2021 by the D Language Foundation