PicoMite V6.00.02 release candidates - all versions


Author Message
electricat

Senior Member

Joined: 30/11/2020
Location: Lithuania
Posts: 286
Posted: 11:36am 26 Mar 2025      

It is said
  Quote  "command should be used in top level program and not from within a subroutine "

but users are summoned from hell to broke things  

SAVE CONTEXT CLEAR used inside of startup sub where DIM and Local were declared was unhapy about Local and failed.

But

sub mm.prompt
SAVE CONTEXT CLEAR
end sub

Seems to work (without extensive testing) as clears vars on exit.  
Slows down exit to cmd prompt becouse saves .vars to flash. Means, unnecessary wearing and tearing flash.

If we could ommit flash write and have command, something like maybe SAVE NONE CLEAR then it might work. However how it might affect what users put in MM.PROMPT ... ?
But it is not my wishes, just looking how it could be solved.

Then another stupid idea came from hell.. if I could just use

sub mm.prompt
CLEAR
end sub


However, you know, how it ended  
Will think/play furthurer