02-03-2024, 05:22 PM
(This post was last modified: 02-03-2024, 05:23 PM by TerryRitchie.)
May I ask you @bartok why you are using the CLEAR command?
The CLEAR command made sense back in the BASIC-80 days:
CLEAR stringspace, memory, stacksize
Then GWBASIC dropped the need to allocate string space (it was actually BASIC-80 version 5):
CLEAR , memory, stacksizeĀ (this is why this is the only BASIC command that has a parameter list that starts with a comma)
Then QuickBasic dropped the need for memory allocation:
CLEAR , , stacksize
and now QB64(PE) has dropped the parameters all together:
CLEAR , ignored, ignored
The CLEAR statement is included to maintain compatibility with GWBASIC and QuickBasic. The other "features" of CLEAR could/should be handled using QB64PE code instead.
The CLEAR command made sense back in the BASIC-80 days:
CLEAR stringspace, memory, stacksize
Then GWBASIC dropped the need to allocate string space (it was actually BASIC-80 version 5):
CLEAR , memory, stacksizeĀ (this is why this is the only BASIC command that has a parameter list that starts with a comma)
Then QuickBasic dropped the need for memory allocation:
CLEAR , , stacksize
and now QB64(PE) has dropped the parameters all together:
CLEAR , ignored, ignored
The CLEAR statement is included to maintain compatibility with GWBASIC and QuickBasic. The other "features" of CLEAR could/should be handled using QB64PE code instead.