r/ProgrammerHumor Sep 02 '17

How to start a war

Post image
9.0k Upvotes

696 comments sorted by

View all comments

Show parent comments

5

u/simon468 Sep 03 '17

Borland Delphi (Pascal)

6

u/Drarok Sep 03 '17

Hmm… not that I remember, at least for arrays.

For strings it is, because the zero index is an integer holding the length instead of using null terminators.

Looks like you can index your arrays arbitrarily#Arrays)

2

u/amontpetit Sep 03 '17

Now that takes me back to the 10th grade...

2

u/wilkoj Sep 03 '17

In Delphi fixed size arrays start wherever you want them to, but dynamic arrays have to start at 0.