Computers for children

From: Marvin <marvin_at_rain.org>
Date: Fri Jan 15 01:51:02 1999

Sam Ismail wrote:
>
> certainly a sublime satisfaction in designing elegant code with do..while
> and while loops (I rarely use for's), but C really suffers from a lack of
> a general error trapping mechanism that one can invoke to break out of
> loops as required. Sometimes I think goto's are the answer but I can
> never find an appropriate way to implement it.

I'm not sure if Fortran treats jumping out of a loop the same as C or not,
but when I was taking Fortran in college, I wrote a program for shuffling
and dealing out pseudo random bridge hamds. When writing it, for whatever
reason I jumped out of a For/Next loop. For some reason the program
crashed. I didn't know you couldn't do that and finally after stumping the
instructors, one of them took the time to again review the code and found
that "minor" glitch. Ah, the fun of learning!
Received on Fri Jan 15 1999 - 01:51:02 GMT

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