Bug in MMBasic 5.07.01


Author Message
joker

Regular Member

Joined: 06/02/2024
Location: Germany
Posts: 43
Posted: 06:03pm 01 May 2026      

Hello,
I recently discovered a bug in MMBasic 5.07.01 on my CMM2.

I defined a funktion like this:

FUNCTION convertToHex$(a%)
  convertToHex$=<do something>
END FUNCTION

If I run this program I get this error message: "Variable Name".

The reaon for this is that Hex$ is a reserved name in MMBasic and obviously it doesn't matter that Hex$ is part of a longer name. Changing the name or choosing a different return type than String make the message disapear.

The name is perfectly acceptable for MMB4L.

Maybe you know this problem already, but I haven't found any hint in this forum.
Therefore, I would be delighted, if we could get the MMBasic 6.xx on the CMM2 soon.

Best Regards
  Matthias

disco4now

Guru

Joined: 18/12/2014
Location: Australia
Posts: 1126
Posted: 01:22am 02 May 2026      

I can duplicate on on the latest CMM2 beta version. I will add to the list.
BIN$,OCT$ and HEX$ functions are replaced by BASE$(2, BASE$(8, or BASE(16, when a program is loaded to save function tokens.