[Coco] GOTO and code maintainability

Darren A mechacoco at gmail.com
Thu Sep 10 11:43:26 EDT 2009


On 9/10/09, Rogelio Perea wrote:
>
> I loved to mess around with some of my colleagues (YEARS ago) writing stuff
> like:
>
> 10 FOR I=0 TO 1:PRINT"HELLO WORLD ";:I=0:NEXT
>
> "Where's the GOTO 10?" was the initial question :-)
>
---

You could also use a step value of 0 as in:

10 FOR I=0 TO 1 STEP 0:PRINT"HELLO WORLD ";:NEXT


Darren



More information about the Coco mailing list