Boost logo

Boost :

From: joel de guzman (isis-tech_at_[hidden])
Date: 2001-06-28 12:18:15

----- Original Message -----
From: "David Abrahams" <david.abrahams_at_[hidden]>

> I think the arguments for interoperability of zero-based indexing are
> compelling. All the same, is there any reason we can't have both
> indexing and '_1st', '_2nd', etc. as suggested below?
> -Dave

I suggested the enumeration to make the distinction between
index and nth element clear. In zero based indexing the 0th
index is the *first* element. This should not be confusing.
In Pascal, we have sub-ranges for example: 5..32 where
the *first* element is at index 5.

I reiterate my suggestion:

enum { _1st, _2nd, -3rd .... };

Joel de Guzman

Boost list run by bdawes at, gregod at, cpdaniel at, john at