Home
JAQForum Ver 24.01
Log In or Join  
Active Topics
Local Time 10:30 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 : MMB4L: need examples specifying types in the non-suffix way

Author Message
thwill

Guru

Joined: 16/09/2019
Location: United Kingdom
Posts: 4311
Posted: 09:42am 30 Jan 2023
Copy link to clipboard 
Print this post

Hi folks,

It occurred to me when taking the kids to school this morning that all my examples and test code for MMB4L specify types using suffix syntax, i.e. i%, f!, s$.

Does anyone have / can anyone point me to some significant pieces of console-only (no hi-res graphics, no additional hardware requirements) MMBasic that use the other two type syntaxes, e.g.

DIM INTEGER nbr(50)
DIM name AS STRING


Thanks in advance,

Tom
MMBasic for Linux, Game*Mite, CMM2 Welcome Tape, Creaky old text adventures
 
JohnS
Guru

Joined: 18/11/2011
Location: United Kingdom
Posts: 4044
Posted: 11:05am 30 Jan 2023
Copy link to clipboard 
Print this post

Maybe FruitOfTheShed has stuff.

John
 
thwill

Guru

Joined: 16/09/2019
Location: United Kingdom
Posts: 4311
Posted: 11:09am 30 Jan 2023
Copy link to clipboard 
Print this post

  JohnS said  Maybe FruitOfTheShed has stuff.


I'm sure it does John, I was just being lazy . I guess I was hoping that if there as someone interested in using MMB4L they might be prepared to do some of the spade-work.

As it happens, I have broken the alternative syntax - probably a simple fix for this evening.

Best wishes,

Tom
MMBasic for Linux, Game*Mite, CMM2 Welcome Tape, Creaky old text adventures
 
JohnS
Guru

Joined: 18/11/2011
Location: United Kingdom
Posts: 4044
Posted: 11:50am 30 Jan 2023
Copy link to clipboard 
Print this post

I'd done a search of files I've kept but they all seemed to break your requirements e.g. had graphics or used hardware -- hardly a shock for MMBasic & TBS.

John
 
thwill

Guru

Joined: 16/09/2019
Location: United Kingdom
Posts: 4311
Posted: 12:37pm 30 Jan 2023
Copy link to clipboard 
Print this post

Thanks John.

Wasn't there some sort of celestial calculator/clock that gets posted about occasionally, I believe Peter might even have used it for testing ... I can't find it now.

Best wishes,

Tom
MMBasic for Linux, Game*Mite, CMM2 Welcome Tape, Creaky old text adventures
 
Mixtel90

Guru

Joined: 05/10/2019
Location: United Kingdom
Posts: 7937
Posted: 12:55pm 30 Jan 2023
Copy link to clipboard 
Print this post

I've used both of those now and again, especially DIM INTEGER a,b,c,i,j,x,y  That's almost a standard command for me and variants of it turn up a lot. Apart from $ I very rarely use a type suffix as I can't be bothered typing them.  :)
Mick

Zilog Inside! nascom.info for Nascom & Gemini
Preliminary MMBasic docs & my PCB designs
 
JohnS
Guru

Joined: 18/11/2011
Location: United Kingdom
Posts: 4044
Posted: 03:31pm 30 Jan 2023
Copy link to clipboard 
Print this post

  thwill said  Wasn't there some sort of celestial calculator/clock that gets posted about occasionally, I believe Peter might even have used it for testing ... I can't find it now.

Sounds like the one that uses triangle, circle, etc

John
Edited 2023-01-31 01:32 by JohnS
 
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