2011/4/29 Alexander <aldem+dm...@nk7.net>: > On 28.04.2011 21:46, Timon Gehr wrote: > >> Why is 'in' not currently defined on arrays? To me it seems like a left-out >> that >> should be fixed, because it has quite obvious and useful semantics. > > +1. It would be very useful and convenient this way, especially if search > will be optimized to series of comparisons for small item count. > > Perhaps we should file a feature request? :) > > /Alexander >
This has been discussed before, see: http://www.mail-archive.com/digitalmars-d@puremagic.com/msg38779.html Torarin