Picomite(VGA) V5.07.07 betas - bug fixes + focus on PIO
Author
Message
thwill Guru Joined: 16/09/2019 Location: United KingdomPosts: 4378
Posted: 02:34pm 13 Jan 2023
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)