#12 READ with innapropriate variable names doesn't error

Open
opened 2 years ago by ChipMaster · 1 comments

This needs a bit more research but I want to record it so it doesn’t get forgotten. Basically this caused unexpected results:

READ BASE, COUNT
PRINT BASE, COUNT
DATA 1, 2

Resulted in:

 0      45

I think BASE & COUNT are reserved for something and ought to have thrown an error.

This needs a bit more research but I want to record it so it doesn't get forgotten. Basically this caused unexpected results: ``` READ BASE, COUNT PRINT BASE, COUNT DATA 1, 2 ``` Resulted in: ``` 0 45 ``` I think BASE & COUNT are reserved for something and ought to have thrown an error.
ChipMaster added the
blunder
label 2 years ago
ChipMaster self-assigned this 2 years ago
ChipMaster commented 2 years ago
Owner
bwBASIC: help count
------------------------------------------------------------
     SYNTAX: N  = COUNT
DESCRIPTION: The current cursor position in the line.
bwBASIC: help base
------------------------------------------------------------
     SYNTAX: N  = BASE
DESCRIPTION: The current OPTION BASE setting.
bwBASIC: 

READ definitely should have thrown an error!

``` bwBASIC: help count ------------------------------------------------------------ SYNTAX: N = COUNT DESCRIPTION: The current cursor position in the line. bwBASIC: help base ------------------------------------------------------------ SYNTAX: N = BASE DESCRIPTION: The current OPTION BASE setting. bwBASIC: ``` `READ` definitely should have thrown an error!
Sign in to join this conversation.
No Milestone
No Assignees
1 Participants
Notifications
Due Date

No due date set.

Dependencies

This issue currently doesn't have any dependencies.

Loading…
There is no content yet.