cancel
Showing results for 
Search instead for 
Did you mean: 
EN
cancel
Showing results for 
Search instead for 
Did you mean: 
Anonymous
Not applicable

0 or 1 for first value in a DIM [array] ?

Often when scripting geometric parts, loops start from 0 and go through to 1 (or 'X'). It is 'frustrating' (and untidy) to have to use a [i +1] throughout the code.

If GDL pretends to be a geometrical scripting language then allowing basic mathematics would be a nice touch.

Note - my personal 'recommendation' would be just for a small extension of the existing coding, thus
DIM A[8] would allow A[0], A[1], A[2] ... A[8]
- which would not interfere with legacy code -and- make me happy in the future!

- Stuart

PS. Yeah - I know this is a pretty small wish - but surely it would be easier to implement??
0 Replies 0

Didn't find the answer?

Check other topics in this Forum

Back to Forum

Read the latest accepted solutions!

Accepted Solutions

Start a new conversation!