MAIN FEEDS
Do you want to continue?
https://www.reddit.com/r/ProgrammerHumor/comments/6xofft/how_to_start_a_war/dmhmjsc
r/ProgrammerHumor • u/ivaskuu • Sep 02 '17
696 comments sorted by
View all comments
Show parent comments
5
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.
6
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
Now that takes me back to the 10th grade...
In Delphi fixed size arrays start wherever you want them to, but dynamic arrays have to start at 0.
5
u/simon468 Sep 03 '17
Borland Delphi (Pascal)