[Coco] GOTO and code maintainability

Benoit Bleau benbleau at gmail.com
Thu Sep 10 13:12:06 EDT 2009


Here's another technical no-goto:

10 A=PEEK(167) : PRINT "HELLO WORLD "; : POKE 167,A

-Benoit
Jorge Renato Machin Ibarra wrote:
> Darren:
>
> 10 PRINT "HELLO WORD":RUN
>
> Technically, there is no goto :P
>
> Jorge Machin
>
>   
>> Date: Thu, 10 Sep 2009 09:43:26 -0600
>> From: mechacoco at gmail.com
>> To: coco at maltedmedia.com
>> Subject: Re: [Coco] GOTO and code maintainability
>>
>> 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
>>
>> --
>> Coco mailing list
>> Coco at maltedmedia.com
>> http://five.pairlist.net/mailman/listinfo/coco
>>     
>
> _________________________________________________________________
> With Windows Live, you can organize, edit, and share your photos.
> http://www.microsoft.com/middleeast/windows/windowslive/products/photo-gallery-edit.aspx
>
> --
> Coco mailing list
> Coco at maltedmedia.com
> http://five.pairlist.net/mailman/listinfo/coco
>
>   




More information about the Coco mailing list