LB Booster
IDE and Compiler >> Compiler >> 'output' as reserved word http://lbb.conforums.com/index.cgi?board=compiler&action=display&num=1476773442 'output' as reserved word
Post by Jack Kelly on Oct 18th, 2016, 06:50am
'output' does not seem to be a reserved word, although it acts as one in an 'open' statement.
Code:
open "test.txt" for output as #1
output=12
a=output
print a
Re: 'output' as reserved word
Post by Richard Russell on Oct 18th, 2016, 08:14am
'output' does not seem to be a reserved word, although it acts as one in an 'open' statement.
True; also APPEND, BINARY and RANDOM of course. There are many other examples such as the CURSOR types, the PLAYWAVE modes, the RUN states and the BUTTON anchor names. But I'm not really sure what point you are making; what advantage would there be in making these words 'reserved' (i.e. unavailable as variable names) when there is no syntactical reason why they need to be?