Computers for children

From: Uncle Roger <sinasohn_at_ricochet.net>
Date: Wed Jan 13 16:37:34 1999

At 06:44 AM 1/13/99 -0800, you wrote:
>But not in most microcomputer BASICs. The Apple II, Atari and C64 all lack
>BEGIN-BEND, WHILE-WEND, block IFs; the 64 doesn't even have ELSE.

While-Wend (and Do While/Do Until) is just a shortcut for using If/Goto:

Do While Flag <> True
  do some stuff
  If condition then
     Set Flag to True
  end-if
loop

is the same as

:loop-in
If Flag = True Then
   Goto loop-out
end-if
do some stuff
If condition Then
   Set Flag to True
end-if
Goto loop-in
:loop-out

Spaghetti code is caused by bad programmers, not bad programming languages.


   



--------------------------------------------------------------------- O-

Uncle Roger "There is pleasure pure in being mad
roger_at_sinasohn.com that none but madmen know."
Roger Louis Sinasohn & Associates
San Francisco, California http://www.sinasohn.com/
Received on Wed Jan 13 1999 - 16:37:34 GMT

This archive was generated by hypermail 2.3.0 : Fri Oct 10 2014 - 23:32:06 BST