🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: pl.comp.lang.pascal
Article #92638

Re: WHile a For

#92638
From: Łukasz Kalbarczyk
Date: Sun, 19 Oct 2008 15:54
33 lines
1427 bytes
Dnia Sat, 18 Oct 2008 12:31:24 +0200, Andrzej Grażyński napisał(a):

> Już było, ale nie szkodzi powtórzyć:
> 
> czym się róznią konstrukcje:
> 
> var
>    i, a, b: integer;
> 
> {1}
> 
> for i := a to b do
> begin
>    { jakaś sekwencja }
> end;
> 
> {2}
> 
> i := a;
> 
> while i <= b do
> begin
>    { ta sama sekwencja }
>    inc(i);
> end;

W normalnych zastosowaniach się nie różnią.
Zresztą nie wiem, czy semantyka fora nie jest
definiowana przez takiego while'a (no może
z dokładnością do środowiska zmiennych).

-- 
ŁK (2008-10-19 17:53:44)
Technical Details
Message-ID: <uh9w37logg5j.dlg@lukasz.5.waw.pl>
Path: mbox-mo1.pugleaf.net!news-archive.icm.edu.pl!news.gazeta.pl!not-for-mail
References: <20080905121945.03f2cdf2.solaris@be.inspired> <gdcdu2$27s$1@news.onet.pl>

Show Full Headers
Complete Article Headers
Path: mbox-mo1.pugleaf.net!news-archive.icm.edu.pl!news.gazeta.pl!not-for-mail
From: Łukasz Kalbarczyk <lukaszusun@toagmk.net>
Newsgroups: pl.comp.lang.pascal
Subject: Re: WHile a For
Date: Sun, 19 Oct 2008 17:54:32 +0200
Organization: "Portal Gazeta.pl -> http://www.gazeta.pl"
Lines: 33
Message-ID: <uh9w37logg5j.dlg@lukasz.5.waw.pl>
References: <20080905121945.03f2cdf2.solaris@be.inspired> <gdcdu2$27s$1@news.onet.pl>
NNTP-Posting-Host: public-gprs57443.centertel.pl
Mime-Version: 1.0
X-Trace: inews.gazeta.pl 1224431720 7282 91.94.97.39 (19 Oct 2008 15:55:20 GMT)
X-Complaints-To: usenet@agora.pl
NNTP-Posting-Date: Sun, 19 Oct 2008 15:55:20 +0000 (UTC)
X-User: l.kalbarczyk
User-Agent: 40tude_Dialog/2.0.15.1pl Hamster/2.1.0.11
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit