'in' syntax for searching arrays

Walter Bright newshound1 at digitalmars.com
Sun Nov 4 12:13:35 PST 2007


Denton Cockburn wrote:
> I just figure it's done often enough that adding it wouldn't be hard,
> especially considering the keyword is already there, and with the same
> general meaning.

With AAs, the 'in' expression looks for the key, not the value. It would 
be inconsistent to overload it to search for values in regular arrays.



More information about the Digitalmars-d mailing list