RS> An array is base 0, meaning that the first subscript is 0.
MH> Just out of curiosity.....is there anyway to set the array base to base
MH> 1? I have no intention of doing this, but I know it can sometimes be
MH> done in other languages such as Basic....
Create a class, overload the [] operator, and just subtract one. :-)
Note that "other languages" cannot change either - in BASIC, it is ALWAYS
1-based, you can't "sometimes" have it one-based...
---
---------------
* Origin: Tanktalus' Tower BBS (1:250/102)
|