LB Booster
« 'output' as reserved word »

Welcome Guest. Please Login or Register.
Apr 1st, 2018, 03:32am



ATTENTION MEMBERS: Conforums will be closing it doors and discontinuing its service on April 15, 2018.
We apologize Conforums does not have any export functions to migrate data.
Ad-Free has been deactivated. Outstanding Ad-Free credits will be reimbursed to respective payment methods.

Thank you Conforums members.
Speed up Liberty BASIC programs by up to ten times!
Compile Liberty BASIC programs to compact, standalone executables!
Overcome many of Liberty BASIC's bugs and limitations!
LB Booster Resources
LB Booster documentation
LB Booster Home Page
LB Booster technical Wiki
Just BASIC forum
BBC BASIC Home Page
Liberty BASIC forum (the original)

« Previous Topic | Next Topic »
Pages: 1  Notify Send Topic Print
 thread  Author  Topic: 'output' as reserved word  (Read 364 times)
Jack Kelly
Full Member
ImageImageImage


member is offline

Avatar




Homepage PM

Gender: Male
Posts: 106
xx 'output' as reserved word
« Thread started 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
 
User IP Logged

Richard Russell
Administrator
ImageImageImageImageImage


member is offline

Avatar




Homepage PM


Posts: 1348
xx Re: 'output' as reserved word
« Reply #1 on: Oct 18th, 2016, 08:14am »

on Oct 18th, 2016, 06:50am, Jack Kelly wrote:
'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?

Richard.
« Last Edit: Oct 18th, 2016, 1:37pm by Richard Russell » User IP Logged

Pages: 1  Notify Send Topic Print
« Previous Topic | Next Topic »

| |

This forum powered for FREE by Conforums ©
Terms of Service | Privacy Policy | Conforums Support | Parental Controls