#8 Files left open =-O

Closed
opened 2 years ago by ChipMaster · 3 comments

Seems like files should be closed, just like clearing all the other variables, when RUN is executed. I can’t remember exactly how the TRS-80 and gwBASIC handled things because I can’t remember ever running into a time where files were accidentally left open when RUNing another program. This is really odd behavior. The only time files should be left open when starting a new program is through the CHAIN command.

Seems like files **should** be closed, just like clearing all the other variables, when `RUN` is executed. I can't remember exactly how the TRS-80 and gwBASIC handled things because I can't remember ever running into a time where files were accidentally left open when RUNing another program. This is really odd behavior. The only time files should be left open when starting a new program is through the `CHAIN` command.
ChipMaster added the
blunder
label 2 years ago
ChipMaster commented 2 years ago
Owner

I noticed variables get dumped upon LOAD and NEW. The files auto-closing should follow the same rules as variable dumping.

I noticed variables get dumped upon `LOAD` and `NEW`. The files auto-closing should follow the same rules as variable dumping.
ChipMaster commented 2 years ago
Owner

Confirmed with BASICA files are closed upon RUN.

Confirmed with `BASICA` files are closed upon `RUN`.
ChipMaster changed title from Files left open to Files left open =-O 2 years ago
ChipMaster commented 2 years ago
Owner

Fixed in commit 9ca2d013

Fixed in commit 9ca2d013
ChipMaster closed this issue 2 years ago
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.