Igor ignores all invalid code outside of functions and doesn't report this. I have seen many code examples of function or operation calls outside of functions like this:
Function Test(string a)
print a
End
Test("this is never executed")
print "this is also never executed"
Function Test2()
End
I would suggest getting rid of such invalid code outside of functions, as it is ignored by Igor and only confuses the reader.
I think this is a known issue for WM, but they can't fix it because it would have a too big impact on their compiler.
Igor ignores all invalid code outside of functions and doesn't report this. I have seen many code examples of function or operation calls outside of functions like this:
I would suggest getting rid of such invalid code outside of functions, as it is ignored by Igor and only confuses the reader.
I think this is a known issue for WM, but they can't fix it because it would have a too big impact on their compiler.