Picomite(VGA) V5.07.07 betas - bug fixes + focus on PIO


Author Message
thwill

Guru

Joined: 16/09/2019
Location: United Kingdom
Posts: 4378
Posted: 02:34pm 13 Jan 2023      

  matherp said  The Picomite behaves the same as the CMM2. Sets the error message if a directory but does not throw an error
MMB4W is slightly different so should probably change but will still return -2 for a directory. It only errors id the filespace ends in / or \


OK, I had not noticed this. Can I officially go on the record as saying that setting MM.ERRMSG$ outside of throwing an ERROR completely breaks "The Principle of Least Surprise" ?

   

If I can be so bold, "least suprise" suggests that:

- If MM.ERRMSG$ <> "" then an error has been thrown ... and the CMM2 should not be setting it to "Success" which it sometimes does.
- If MM.ERRNO <> 0 then an error has been thrown ... I think this is always the case.
- At all times either (MM.ERRMSG$ <> "" AND MM.ERRNO <> 0) OR (MM.ERRMSG$ = "" AND MM.ERRNO = 0)

Best wishes,

Tom
Edited 2023-01-14 00:39 by thwill