🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.std.c
Article #3994

Early misunderstanding of "while" (was: Re: Situation indicators (long))

#3994
From: Paul Long
Date: Thu, 14 Sep 1995 17:33
21 lines
1822 bytes
mikey@banzai.ontek.com (Mike Lee) wrote:
>Back when I was a wee little laddy and stumbled across my first "while"
>statement, I initially misinterpreted the definition.  When I finally
>understood how it worked I was rather disappointed.  I took the "while"
>to mean that statements in the block should be executed until the
>condition is no longer true, and then should stop immediately, _even in
>the middle of the block_.

Yeah, I've heard that this is a common misunderstanding for beginning
programmers. My first "language" was machine code for a programmable
calculator. I used to do my math and physics homework on it in college. My next
language was 6800 assembler. Since I started with extremely low-level
languages, I don't remember having an expectation that "while" or "until"
behaved in this way. I wonder if the languages that one first uses is the
determining factor.

-- 
Paul Long                               45:29:14N 122:48:09W
plong@perf.com                          http://www.teleport.com/~pciwww/
    "Where time or intelligence are lacking, a goto may do the job."
        - M.E. Hopkins, "A Case for the GOTO," 1972.
Technical Details
Message-ID: <439p1g$p7o@news0.rain.rg.net>
Path: arc1-ca.pugleaf.net!usenet.eel.ufl.edu!pacifier!rainrgnews0!usenet
References: <4321kd$cne@news0.rain.rg.net> <I.predict.jos.will.like.this.article> <437egh$r6g@news.cerf.net>

Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!usenet.eel.ufl.edu!pacifier!rainrgnews0!usenet
From: Paul Long <plong@perf.com>
Newsgroups: comp.std.c
Subject: Early misunderstanding of "while" (was: Re: Situation indicators (long))
Date: 14 Sep 1995 17:33:36 GMT
Organization: Performance Computing Incorporated
Message-ID: <439p1g$p7o@news0.rain.rg.net>
References: <4321kd$cne@news0.rain.rg.net> <I.predict.jos.will.like.this.article> <437egh$r6g@news.cerf.net>
NNTP-Posting-Host: yosemite.perf.com
Mime-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit
X-Mailer: Mozilla 1.1N (X11; I; SunOS 4.1.1 sun4c)
X-URL: news:437egh$r6g@news.cerf.net