Home  |  Contents 

Microcontroller and PC projects
  Forum Index : Microcontroller and PC projects         Section
Subject Topic: Wrinkle in MMBasic Select... Case... Post ReplyPost New Topic
Author
Message << Prev Topic | Next Topic >>
CaptainBoing
Guru
Guru
Avatar

Joined: 07 September 2016
Location: United Kingdom
Online Status: Online
Posts: 572
Posted: 17 April 2018 at 4:45am | IP Logged Quote CaptainBoing

Hello All (but esp Geoff and Peter M)

I have discovered a small bug with an easy work-around in the Select Case construct.

When comparing a negative constant I get the following error


[18] Case -2
Error: Syntax 1


It seems the case statement is not correctly evaluating the argument of negative two. The work-around is simple enough:


Case 0-2


one for the list?

> ? mm.ver
5.0408
> ? mm.device$
Micromite MkII
>


Edited by CaptainBoing on 17 April 2018 at 4:46am



Back to Top View CaptainBoing's Profile Search for other posts by CaptainBoing
 
Geoffg
Guru
Guru
Avatar

Joined: 06 June 2011
Location: Australia
Online Status: Offline
Posts: 2392
Posted: 17 April 2018 at 7:15am | IP Logged Quote Geoffg

Good find, thanks.
I will fix it in the next beta.

Geoff
Back to Top View Geoffg's Profile Search for other posts by Geoffg Visit Geoffg's Homepage
 
Grogster
Guru
Guru
Avatar

Joined: 31 December 2012
Location: New Zealand
Online Status: Offline
Posts: 6068
Posted: 17 April 2018 at 8:58am | IP Logged Quote Grogster

@ Captain: Another one to squish.

__________________
Smoke makes things work. When the smoke gets out, it stops!
Back to Top View Grogster's Profile Search for other posts by Grogster Visit Grogster's Homepage
 


If you wish to post a reply to this topic you must first login
If you are not already registered you must first register

  Search the forums using Google.
In the news...
 
Post ReplyPost New Topic
Printable version Printable version
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot delete your posts in this forum
You cannot edit your posts in this forum
You cannot create polls in this forum
You cannot vote in polls in this forum

Powered by Web Wiz Forums version 7.8
Copyright ©2001-2004 Web Wiz Guide

This page was generated in 0.1094 seconds.
Privacy Policy     Process times : 0, 0, 0, 0.11