[Coco] What BASIC09 needs is

L. Curtis Boyle curtisboyle at sasktel.net
Mon Jan 18 18:49:23 EST 2010


Or:
SELECT var
   CASE 1 TO 6
      (code)
   CASE 7 TO 15
      (code)
   CASE ELSE
       PRINT "Error: var out if range"
   END SELECT

style.

Sent from my iPhone
L. Curtis Boyle


On Jan 18, 2010, at 3:36 PM, Wayne Campbell <asa.rand at gmail.com> wrote:

> which would you prefer?
>
> ON var GOTO 1,1,1,1,1,2,2,2,2,2,3,3,3,3,3,4,4,4,4,4,5,5,5,5,5,6
>
> or
>
> SELECT var
> CASE <6: BREAK
> CASE <11: BREAK
> CASE <16: BREAK
> CASE <21: BREAK
> CASE <26: BREAK
> DEFAULT:
> END SELECT
>
> I would prefer the select syntax.
>
> Wayne
>
> ----- Original Message ----- From: "Joel Ewy" <jcewy at swbell.net>
> To: "CoCoList for Color Computer Enthusiasts" <coco at maltedmedia.com>
> Sent: Monday, January 18, 2010 12:16 PM
> Subject: Re: [Coco] What BASIC09 needs is
>
>
>> Wayne Campbell wrote:
>>> And SELECT/CASE, and REDIM and...
>> How would SELECT/CASE be significantly different from ON... GOSUB  
>> or ON... GOTO?
>> I would think that a reasonably simple pre-processor could add  
>> support for constant declarations and text labels for line numbers.
>> JCE
>>>
>>> Wayne
>>>
>>> ----- Original Message ----- From: "Joel Ewy" <jcewy at swbell.net>
>>> To: "CoCoList for Color Computer Enthusiasts" <coco at maltedmedia.com>
>>> Sent: Monday, January 18, 2010 7:40 AM
>>> Subject: [Coco] What BASIC09 needs is
>>>
>>>
>>>> CONST
>>>>
>>>> JCE
>>>>
>>>>
>>>> -- 
>>>> Coco mailing list
>>>> Coco at maltedmedia.com
>>>> http://five.pairlist.net/mailman/listinfo/coco
>>>
>>> -- 
>>> Coco mailing list
>>> Coco at maltedmedia.com
>>> http://five.pairlist.net/mailman/listinfo/coco
>>>
>> --
>> Coco mailing list
>> Coco at maltedmedia.com
>> http://five.pairlist.net/mailman/listinfo/coco
>
> --
> Coco mailing list
> Coco at maltedmedia.com
> http://five.pairlist.net/mailman/listinfo/coco



More information about the Coco mailing list