Bug: pre-processor not respecting for loop scope.
Posted: Thu May 20, 2010 1:57 pm
This is not a critical bug, but fixing it would help prevent people (e.g. me) shooting themselves in the foot.
If you have a pre-processor loop, for example:
Then upon hitting the
When copying and pasting code around it's very easy to accidentally end up with loop local variables that shouldn't be there. Throwing an error in this circumstance would be a great help.
Tom
If you have a pre-processor loop, for example:
- Code: Select all
@#for lead in 1:offset
LEAD@{lead}_FrakturIPart(0) = LEAD@{lead-1}_FrakturIPart(+1);
@#endfor
Then upon hitting the
- Code: Select all
@#endfor
- Code: Select all
lead
When copying and pasting code around it's very easy to accidentally end up with loop local variables that shouldn't be there. Throwing an error in this circumstance would be a great help.
Tom