Home
JAQForum Ver 24.01
Log In or Join  
Active Topics
Local Time 08:14 18 Sep 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 : [MMBASIC] ADD CONTINUE

Author Message
MicroBlocks

Guru

Joined: 12/05/2012
Location: Thailand
Posts: 2209
Posted: 06:53am 26 Sep 2015
Copy link to clipboard 
Print this post

@Geoff,

Would it be possible to add the functionality for the CONTINUE keyword.
I know it is now used at the prompt to continue a stopped program.
Could CONTINUE as part of a program still be used to go to the top of a DO WHILE
loop and retest the condition.
This feature is available in many languages and it has become a part of my thinking.
Today i had one of those moments again when moving a program from C to MMBasic.
It is a really difficult effort to rewrite that.
De 'break' IN C/Java/C# is already implemented in MMBasic as a 'EXIT DO'. Continue has been used in other basics also. In visual basic it was 'continue do'. There was also a 'continue for' and 'continue while' although i feel that just using the 'continue' keyword would be sufficient as it is only in the context of the current loop.
I really miss it in MMBasic.



Microblocks. Build with logic.
 
kiiid

Guru

Joined: 11/05/2013
Location: United Kingdom
Posts: 671
Posted: 07:07am 26 Sep 2015
Copy link to clipboard 
Print this post

I love 'continue' in C. Agree with you that it is a very useful construct, especially for the people with a bit more advanced programming skills.
http://rittle.org

--------------
 
Geoffg

Guru

Joined: 06/06/2011
Location: Australia
Posts: 3303
Posted: 12:40pm 26 Sep 2015
Copy link to clipboard 
Print this post

I try to avoid making BASIC too "C like" but this one sounds easy. I will add it to the list.

Incidentally the current list can always be found at: http://geoffg.net/Downloads/Micromite/MMPlusIssues.txt Edited by Geoffg 2015-09-27
Geoff Graham - http://geoffg.net
 
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