![]() |
Forum Index : Microcontroller and PC projects : [MMBASIC] ADD CONTINUE
Author | Message | ||||
MicroBlocks![]() Guru ![]() Joined: 12/05/2012 Location: ThailandPosts: 2209 |
@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 KingdomPosts: 671 |
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: AustraliaPosts: 3303 |
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 Geoff Graham - http://geoffg.net |
||||
![]() |
![]() |
The Back Shed's forum code is written, and hosted, in Australia. | © JAQ Software 2025 |