[Issue 18422] String members and parameters cannot be mixed in, even during CTFE
d-bugmail at puremagic.com
d-bugmail at puremagic.com
Mon Feb 12 02:18:58 UTC 2018
https://issues.dlang.org/show_bug.cgi?id=18422
--- Comment #7 from Andrei Alexandrescu <andrei at erdani.com> ---
(In reply to Adam D. Ruppe from comment #6)
> Why doesn't:
>
> enum Data[] d = getModule!("mypack.mymod").data;
>
>
> work? Where getModule is a small template that just returns the populated
> Module object with the CT data.
Cool variant, thanks.
--
More information about the Digitalmars-d-bugs
mailing list