How to override opCmp when two different sorts are needed?
Frits van Bommel
fvbommel at REMwOVExCAPSs.nl
Wed Aug 15 05:49:32 PDT 2007
Deewiant wrote:
> - Almost no D support, as you say. For instance, slices:
>
> array[x .. x + y]
> array[x..$][0..y]
> array[0..y][x..$]
> (&array[x])[0..y]
>
> The above forms are equivalent, yet generate very different code. I feel that
The third one is actually equivalent to array[x..y] and not to the other
three.
More information about the Digitalmars-d
mailing list