> Apparent for numerical constants, when you do this: const modpg = 2310 the > compiler will convert it to whatever is required to make math operations work > (at least it did so in my code). > > But doing: const modpg = parameter[0] causes it to retain the int casting > from the proc, which then requires explicit casting when doing math with > differently cast values.
That is an interesting observation. So in the later case the const works more like a let statement.