An introduction to the Julia language, part 1
An introduction to the Julia language, part 1
Posted Aug 29, 2018 13:29 UTC (Wed) by jem (subscriber, #24231)In reply to: An introduction to the Julia language, part 1 by eru
Parent article: An introduction to the Julia language, part 1
True, but the convention in Pascal is that indices are 1-based. In addition, Pascal as defined by Wirth and also Standard Pascal (ISO 7185) don't support constant expressions, so you can't write something like this:
const TABLESIZE = 10; var table: array[0..TABLESIZE-1];
Strings in Pascal are implicitly of type
packed array [1..N] of chari.e. they are 1-based.
It is perhaps worth mentioning that array declarations in Oberon (a later programming language by Wirth) only include the size of the array, and array indices start with 0.