![]() |
Forum Index : Microcontroller and PC projects : CMM2: implementation or documentation bug with #DEFINE
Author | Message | ||||
thwill![]() Guru ![]() Joined: 16/09/2019 Location: United KingdomPosts: 4311 |
Hi Peter, > list "foo.bas" #define "foo", "8" #DEFINE "bar", "4" Print foo Print bar > run "foo.bas" 0 4 The manual doesn't say that the #DEFINE command must be in capitals (though it does for #COMMENT ... but #include works in lower-case ![]() Also the manual states a "program can support up to 64 #define statements" (and the does use lower-case for this statement), I believe you upped that limit not long ago after a plea from @epsilon ? Finally I was wondering whether you would be prepared to engage in a dialogue about "DEFINEs are executed in reverse order of creation" as at first glance that seems open to confusion and I wonder if there is another way of achieving the stated goal of allowing symbols to be redefined, i.e. actually replace the previous definition instead of tacking a new one to the end of the definition list. Best wishes, Tom MMBasic for Linux, Game*Mite, CMM2 Welcome Tape, Creaky old text adventures |
||||
matherp Guru ![]() Joined: 11/12/2012 Location: United KingdomPosts: 10310 |
Manual error - will ask Geoff to correct. No further releases planned in medium term unless something bad surfaces |
||||
thwill![]() Guru ![]() Joined: 16/09/2019 Location: United KingdomPosts: 4311 |
Fair enough, thanks. Best wishes, Tom Edited 2021-07-06 01:02 by thwill MMBasic for Linux, Game*Mite, CMM2 Welcome Tape, Creaky old text adventures |
||||
Turbo46![]() Guru ![]() Joined: 24/12/2017 Location: AustraliaPosts: 1642 |
@Geoff, (if you read this) I downloaded the manual to check the description and found that it had been udated. Is it possible to include manual version numbers on the front page when the manual is updated? Bill Keep safe. Live long and prosper. |
||||
thwill![]() Guru ![]() Joined: 16/09/2019 Location: United KingdomPosts: 4311 |
Hi Geoff, Whilst the capitalisation requirement had been clarified the entry still says "Up to 64 #DEFINE statements can be used." Is it not the case that Peter increased this to 128 or 256 ? Best wishes, Tom MMBasic for Linux, Game*Mite, CMM2 Welcome Tape, Creaky old text adventures |
||||
Turbo46![]() Guru ![]() Joined: 24/12/2017 Location: AustraliaPosts: 1642 |
https://www.thebackshed.com/forum/ViewTopic.php?TID=13459&PID=169099#169099 Bill Keep safe. Live long and prosper. |
||||
Geoffg![]() Guru ![]() Joined: 06/06/2011 Location: AustraliaPosts: 3292 |
Ah, caught out! Peter asked for the manual to be updated and I did it in a rush. Normally I don't keep updating the manual because that would involve some sort of change log which just adds to the complexity. Instead we should log any errors in the "Current Bug List". That is one for Peter. Geoff Geoff Graham - http://geoffg.net |
||||
matherp Guru ![]() Joined: 11/12/2012 Location: United KingdomPosts: 10310 |
256: sorry didn't pick it up when proof reading Edited 2021-07-10 19:45 by matherp |
||||
![]() |
![]() |
The Back Shed's forum code is written, and hosted, in Australia. | © JAQ Software 2025 |