Home
JAQForum Ver 24.01
Log In or Join  
Active Topics
Local Time 10:37 01 Aug 2025 Privacy Policy
Jump to

Notice. New forum software under development. It's going to miss a few functions and look a bit ugly for a while, but I'm working on it full time now as the old forum was too unstable. Couple days, all good. If you notice any issues, please contact me.

Forum Index : Microcontroller and PC projects : CMM2: implementation or documentation bug with #DEFINE

Author Message
thwill

Guru

Joined: 16/09/2019
Location: United Kingdom
Posts: 4311
Posted: 01:25pm 05 Jul 2021
Copy link to clipboard 
Print this post

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 Kingdom
Posts: 10310
Posted: 02:48pm 05 Jul 2021
Copy link to clipboard 
Print this post

Manual error - will ask Geoff to correct.

  Quote  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.


No further releases planned in medium term unless something bad surfaces
 
thwill

Guru

Joined: 16/09/2019
Location: United Kingdom
Posts: 4311
Posted: 03:02pm 05 Jul 2021
Copy link to clipboard 
Print this post

  matherp said  No further releases planned in medium term unless something bad surfaces


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: Australia
Posts: 1642
Posted: 01:28am 10 Jul 2021
Copy link to clipboard 
Print this post

@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 Kingdom
Posts: 4311
Posted: 07:07am 10 Jul 2021
Copy link to clipboard 
Print this post

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: Australia
Posts: 1642
Posted: 07:49am 10 Jul 2021
Copy link to clipboard 
Print this post

  Quote  b34 - 256 #defines


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: Australia
Posts: 3292
Posted: 07:58am 10 Jul 2021
Copy link to clipboard 
Print this post

  Turbo46 said  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?

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".

  thwill said  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 ?

That is one for Peter.

Geoff
Geoff Graham - http://geoffg.net
 
matherp
Guru

Joined: 11/12/2012
Location: United Kingdom
Posts: 10310
Posted: 09:44am 10 Jul 2021
Copy link to clipboard 
Print this post

256: sorry didn't pick it up when proof reading
Edited 2021-07-10 19:45 by matherp
 
Print this page


To reply to this topic, you need to log in.

The Back Shed's forum code is written, and hosted, in Australia.
© JAQ Software 2025