| Article: |
What I Hate About Your Programming Language | |
| Subject: | C, C++, Java, maybe others - zeroth element arrays | |
| Date: | 2003-05-15 02:07:51 | |
| From: | anonymous2 | |
|
Response to: C, C++, Java, maybe others - zeroth element arrays
|
||
| Perhaps you should move to COBOL :-), where the first element of an array is addressed as...... 1. | ||
Showing messages 1 through 1 of 1.
-
C, C++, Java, maybe others - zeroth element arrays
2003-09-18 13:18:15 anonymous2 [View]



I like arrays in pascal with bounds from -n to +n: var a: array [-10..10] of integer; It is very natural, simple and with run-time bounds checking also very safe. With arrays like pascal's much of current buffer overrun exploits would (probably) not exist!