'in' syntax for searching arrays
Bill Baxter
dnewsgroup at billbaxter.com
Sun Nov 4 13:41:58 PST 2007
Walter Bright wrote:
> 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.
A foolish consistency. Arrays and associative arrays are different things.
--bb
More information about the Digitalmars-d
mailing list