There is no required End-Of-Line delimiter in NetLinx, so to the compiler the two code snippets below are the same:
// start
STACK_VAR INTEGER nMyInt[<...additional code here>
// end
//start
STACK_VAR INTEGER nMyInt
[<...additional code here>
// end
My guess is this one of those things that doesn't have any easy or elegant fix that won't break someone else's existing code.
I appreciate your responding Guy. I understand the reason it happens, and whether it's simple or not to fix it, it also relates error messages which aren't very helpful either. I'm sure that this has happened to more than the three people who mention it in this thread and if it's not something that can be fixed, then it should be simple enough to add a clearer error message that it's occurring. It's simple enough for me to catch by eye, but after coding for 8+ hours these things become much less obvious.
I feel like this is a piece of chewing gum on the sidewalk that people keep stepping in. If you can't clean it off, then do something to help prevent people from stepping in it. It shouldn't just be ignored.
If it can't be fixed, throw a clear error message. This doesn't help me now, but hopefully this will prevent other programmers from wasting time and productivity on it.
Comments
I appreciate your responding Guy. I understand the reason it happens, and whether it's simple or not to fix it, it also relates error messages which aren't very helpful either. I'm sure that this has happened to more than the three people who mention it in this thread and if it's not something that can be fixed, then it should be simple enough to add a clearer error message that it's occurring. It's simple enough for me to catch by eye, but after coding for 8+ hours these things become much less obvious.
I feel like this is a piece of chewing gum on the sidewalk that people keep stepping in. If you can't clean it off, then do something to help prevent people from stepping in it. It shouldn't just be ignored.
If it can't be fixed, throw a clear error message. This doesn't help me now, but hopefully this will prevent other programmers from wasting time and productivity on it.
--John