In expression for array
BCS
ao at pathlink.com
Wed Jan 23 21:04:42 PST 2008
Reply to kede,
> Hi All,
>
> How about adding In expressions for general arrays in addition to
> assoc arrays:
>
> if ('i' in eyes)
> ...
> as a simple replacement for the more verbose
> foreach(c; eyes)
> if (c == 'i')
> ...
> I think its a common enough pattern to warrant inclusion?
>
> Have fun,
> kede
this suggestion comes up about every other month, gets thrashed about (pros,
cons, etc.) until everyone losses interest and then dies the same (un implemented)
death.
More information about the Digitalmars-d
mailing list