Menu

#12 NEW followed by LOAD of kbs file has corrupted labels

v1.0 (example)
open
nobody
None
5
2026-08-05
2026-08-05
marcus
No

Loading a basic.kbs file (no line numbers) containing labels (MyLabel:) following the NEW command will frequently corrupt the lables, in version 3.4 compiled on debian linux running in parallels virtual machine on mac. (arm 64)
After the NEW command, the LOAD command used to load a basic.kbs file (without line numbers) containing LABELS: will often (1 in 3) corrupt the labels on parsing so that MYLABEL: shows in the listing as
CALL MYLABEL(:)
This of course results in a syntax error on RUN; however, if after the NEW command, and before the LOAD command, the problem does not occur if either the RUN or the LIST command is run first.
NEW
LIST or RUN
LOAD "basic.kbs". NOT A PROBLEM

I have not seen this issue on an initial LOAD, nor has the problem occurred on bwbasic invoked with basic.kbs on the command line. The issue only happens within the interpreter on LOAD following a NEW command.

Thanks
marcus

Discussion


Log in to post a comment.