std.algorithm.remove and principle of least astonishment
Rainer Deyke
rainerd at eldwood.com
Mon Nov 22 03:10:30 PST 2010
On 11/22/2010 03:57, Jonathan M Davis wrote:
> On Monday 22 November 2010 02:01:38 Rainer Deyke wrote:
>> Are you saying that arrays of T do not function as ranges of T when T is
>> not a character type?
>
> I believe that he means that you either use them as ranges or you use them as
> arrays. Mixing the two sets of operations is asking for trouble.
It is impossible to have a non-empty array without at some point using
an array operation. If you can't mix array operations with range
operations, then you can't use arrays as ranges.
--
Rainer Deyke - rainerd at eldwood.com
More information about the Digitalmars-d
mailing list