🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

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

Re: co daje out ??

#92472
From: Wiktor S.
Date: Sun, 24 Feb 2008 12:04
29 lines
1407 bytes
> co w FPC daje out w definicji nap procedury

> procedure co ( out t:text);

> a wiec to porpostu nowe nazwanie definicji zmiennej  czy jednak var i
> out sie czym roznia ??

różnią się tym, że vara w procedurze możesz zapisywać i odczytywać, a outa 
tylko zapisywać:


procedure ala(var x:byte);
var y:byte;
begin
  y:=x;  // odczyt
  x:=10; // zapis
end;

procedure kota(out x:byte);
var y:byte;
begin
  x:=10; // zapis
  y:=x;  // błąd
end;



-- 
Azarien
Technical Details
Message-ID: <fprmh3$ac5$1@news.onet.pl>
Path: mbox-mo1.pugleaf.net!news-archive.icm.edu.pl!news.gazeta.pl!newsfeed.pionier.net.pl!news.nask.pl!news.nask.org.pl!news.onet.pl!not-for-mail
References: <28bb.000000ab.47c0614a@newsgate.onet.pl>

Show Full Headers
Complete Article Headers
Path: mbox-mo1.pugleaf.net!news-archive.icm.edu.pl!news.gazeta.pl!newsfeed.pionier.net.pl!news.nask.pl!news.nask.org.pl!news.onet.pl!not-for-mail
From: "Wiktor S." <wswiktor&poczta,fm@no.spam>
Newsgroups: pl.comp.lang.pascal
Subject: Re: co daje out ??
Date: Sun, 24 Feb 2008 13:04:46 +0100
Organization: Onet.pl
Lines: 30
Message-ID: <fprmh3$ac5$1@news.onet.pl>
References: <28bb.000000ab.47c0614a@newsgate.onet.pl>
NNTP-Posting-Host: 76.174.wmc.com.pl
Mime-Version: 1.0
X-Trace: news.onet.pl 1203854691 10629 87.250.174.76 (24 Feb 2008 12:04:51 GMT)
X-Complaints-To: usenet@news.onet.pl
NNTP-Posting-Date: Sun, 24 Feb 2008 12:04:51 +0000 (UTC)
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.3138
X-Sender: 63e3folRCjcGWUjNfLSN0w==
X-Newsreader: Microsoft Outlook Express 6.00.2900.3138
X-Priority: 3
X-MSMail-Priority: Normal
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit