[Issue 18422] String members and parameters cannot be mixed in, even during CTFE

d-bugmail at puremagic.com d-bugmail at puremagic.com
Sun Feb 11 19:21:28 UTC 2018


https://issues.dlang.org/show_bug.cgi?id=18422

--- Comment #3 from ag0aep6g at gmail.com ---
(In reply to Andrei Alexandrescu from comment #2)
> Happy to oblige!
> 
> struct Data
> {
>     string name;
>     string type;
>     string qualifier;
>     string[] attributes;
> }
> 
> Then the module can give you all top-level data declarations:
> 
> enum Data[] d = Module("mypack.mymod").data;
> ...

Eh? Previously it was "function declarations", now it's "data declarations".
And you've not given an implementation of either.

--


More information about the Digitalmars-d-bugs mailing list