getting Key:Value pairs of an enum at compile time ?

Stanislav Blinov stanislav.blinov at gmail.com
Thu Jan 23 09:16:29 PST 2014


On Thursday, 23 January 2014 at 17:15:41 UTC, Uplink_Coder wrote:
>> void main() {
>>    foreach(m; EnumMembers!Options) {
>>        writeln(m, " ", cast(string)m);
>>    }
>> }
>
> Still not there at compile-time
> ... because I need to index my members

Could you show an exact code that fails?


More information about the Digitalmars-d-learn mailing list