🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: pl.comp.os.linux.programowanie
Article #60117

Re: Jak zrobić program obliczający dużą silnię?

#60117
From: Jacek Popławski
Date: Wed, 26 Oct 2005 11:43
8 lines
1790 bytes
Zbyszek Malec wrote:
> Bo to nie jest po prostu przerwanie pętli, to jest przeniesienie pewnej
> części funkcjonalności do innego modułu (tutaj funkcji).

Tak, bo zamiast przerywać pętlę, co jest nieprzejrzyste, przerywa się 
funkcję. Co w tym złego? Jeśli te pętlę robią coś takiego, co może 
zostać przerwane, to powinne znaleźć się w osobnej funkcji. Można też 
użyć wyjątku...
Technical Details
Message-ID: <djnq5h$8ae$1@atlantis.news.tpi.pl>
Path: mbox-mo1.pugleaf.net!news-archive.icm.edu.pl!newsfeed.gazeta.pl!newsfeed.atman.pl!newsfeed.tpinternet.pl!atlantis.news.tpi.pl!news.tpi.pl!not-for-mail
References: <djfrn5$i55$1@nemesis.news.tpi.pl> <dji80k$2a5$2@atlantis.news.tpi.pl> <20051024135514.GA237@siebert> <djij31$st1$1@sunnews.cern.ch> <20051024162624.GA1132@siebert> <djleog$fok$1@nemesis.news.tpi.pl> <1t4bv9mozvw38.12szxw58iqmbp.dlg@40tude.net> <djn9lh$ktl$1@nemesis.news.tpi.pl> <e2pcznjzv2gh$.1drgaxj9rqzhj.dlg@40tude.net> <djnjtf$suk$2@nemesis.news.tpi.pl> <1i7bbr8l84m9o$.8ttxld9ccdq4.dlg@40tude.net>

Show Full Headers
Complete Article Headers
Path: mbox-mo1.pugleaf.net!news-archive.icm.edu.pl!newsfeed.gazeta.pl!newsfeed.atman.pl!newsfeed.tpinternet.pl!atlantis.news.tpi.pl!news.tpi.pl!not-for-mail
From: Jacek Popławski <jpopl@interia.pl>
Newsgroups: pl.comp.os.linux.programowanie
Subject: Re: Jak zrobić program
 obliczający dużą silnię?
Date: Wed, 26 Oct 2005 13:43:37 +0200
Organization: tp.internet - http://www.tpi.pl/
Lines: 8
Message-ID: <djnq5h$8ae$1@atlantis.news.tpi.pl>
References: <djfrn5$i55$1@nemesis.news.tpi.pl> <dji80k$2a5$2@atlantis.news.tpi.pl> <20051024135514.GA237@siebert> <djij31$st1$1@sunnews.cern.ch> <20051024162624.GA1132@siebert> <djleog$fok$1@nemesis.news.tpi.pl> <1t4bv9mozvw38.12szxw58iqmbp.dlg@40tude.net> <djn9lh$ktl$1@nemesis.news.tpi.pl> <e2pcznjzv2gh$.1drgaxj9rqzhj.dlg@40tude.net> <djnjtf$suk$2@nemesis.news.tpi.pl> <1i7bbr8l84m9o$.8ttxld9ccdq4.dlg@40tude.net>
NNTP-Posting-Host: ns.s3group.com.pl
Mime-Version: 1.0
X-Trace: atlantis.news.tpi.pl 1130327026 8526 212.160.116.222 (26 Oct 2005 11:43:46 GMT)
X-Complaints-To: usenet@tpi.pl
NNTP-Posting-Date: Wed, 26 Oct 2005 11:43:46 +0000 (UTC)
User-Agent: Mozilla Thunderbird 1.0.7 (Windows/20050923)
X-Accept-Language: en-us, en
In-Reply-To: <1i7bbr8l84m9o$.8ttxld9ccdq4.dlg@40tude.net>
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit