Wierd WAIT_UNTIL Bug
PhreaK
Posts: 966
There seems to be a bug in the NetLinx compiler when it comes to WAIT_UNTIL's inside functions. Take the following for example:
The compiler seems to have difficulty distinguishing between the nBar within the structure and nBar the function parameter. If you try and compile it'll throw:
Just though I'd share the love so that others don't have to go through the pain and torement of figuring out why the hell their code may not be compiling.
DEFINE_TYPE STRUCTURE _sStructure { INTEGER nBar } DEFINE_VARIABLE _sStructure uStructure DEFINE_FUNCTION fnFoo (INTEGER nBar) { WAIT_UNTIL (uStructure.nBar == FALSE) { // do something } }
The compiler seems to have difficulty distinguishing between the nBar within the structure and nBar the function parameter. If you try and compile it'll throw:
Symbol [AutoWait[i]x[/i]] undefined in symbol table
Just though I'd share the love so that others don't have to go through the pain and torement of figuring out why the hell their code may not be compiling.
0
Comments