How I can iterate data in structure
bearophile via Digitalmars-d-learn
digitalmars-d-learn at puremagic.com
Fri Aug 22 03:19:33 PDT 2014
Suliman:
>>foreach (field; result.tupleof)
>
> Why I should here specify type of iterable element, but not
> first element that I use for iteration?
>
> I mean:
> foreach (_some_type_possible_enum_ field; result)
>
> ?
I don't understand your question. In my code I have not specified
types in the foreach.
Bye,
bearophile
More information about the Digitalmars-d-learn
mailing list