opDollar
Benji Smith
dlanguage at benjismith.net
Thu Sep 11 21:36:22 PDT 2008
Bill Baxter wrote:
> On Fri, Sep 12, 2008 at 11:10 AM, Steven Schveighoffer
>> size doesn't work for slices that don't use sequential integers as index.
>> i.e. imagine a sorted map (such as tree map) slice:
>>
>> I much prefer 'end' or 'last'. It reads natural. From the "one" element to
>> the end.
>
> Ok, so you want to change the meaning of $ altogether from being a
> number to something container dependent?
Also, even when $ is a number, it isn't the index of the "end" node or
the "last" element. It's the index *after* the last element.
I think only "length" or "size" are accurate.
--benji
More information about the Digitalmars-d-announce
mailing list