From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on polar.synack.me X-Spam-Level: X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00 autolearn=ham autolearn_force=no version=3.4.4 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 103376,ad988eb0a9545c86 X-Google-Attributes: gid103376,public X-Google-ArrivalTime: 2001-04-15 12:50:01 PST Path: supernews.google.com!sn-xit-03!supernews.com!freenix!grolier!dispose.news.demon.net!demon!diablo.netcom.net.uk!netcom.net.uk!not-for-mail From: "Ayende Rahien" Newsgroups: comp.lang.ada Subject: Re: Problem trying to implement generics. Date: Sun, 15 Apr 2001 22:44:23 +0200 Organization: (Posted via) GTS Netcom - Public USENET Service http://pubnews.netcom.net.uk Sender: ayende@softhome.net Message-ID: <9bcttr$134$1@taliesin.netcom.net.uk> References: <9b46dr$cd8$1@taliesin.netcom.net.uk> <9b6jtu$4is$2@taliesin.netcom.net.uk> <9b6m27$68e$1@taliesin.netcom.net.uk> <0JBB6.10484$FD1.1197250@news6-win.server.ntlworld.com> <9b7tce$laf$2@taliesin.netcom.net.uk> <9b85fj$25r$1@taliesin.netcom.net.uk> <3AD858A3.3070803@elros.cbb-automation.de> <9b9qjc$nk9$1@taliesin.netcom.net.uk> <3AD9A697.8080402@elros.cbb-automation.de> NNTP-Posting-Host: diup-181-140.inter.net.il X-Trace: taliesin.netcom.net.uk 987364092 1124 213.8.181.140 (15 Apr 2001 19:48:12 GMT) X-Complaints-To: abuse@corp.netcom.net.uk NNTP-Posting-Date: Sun, 15 Apr 2001 19:48:12 +0000 (UTC) X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 5.60.2296.0000 X-MimeOLE: Produced By Microsoft MimeOLE V5.60.2296.0000 Xref: supernews.google.com comp.lang.ada:6905 Date: 2001-04-15T22:44:23+02:00 List-Id: "Dmitry A. Kazakov" wrote in message news:3AD9A697.8080402@elros.cbb-automation.de... > > > Ayende Rahien wrote: > > > "Dmitry A. Kazakov" wrote in message > > news:3AD858A3.3070803@elros.cbb-automation.de... > > > >> Well, but what I still cannot understand, what is the objection against > >> *procedures* returning a value: > > > > Because that is the difference between functions & procedures? > > The difference between them is that a function may (supposedly) have no > side effects and hence no [in]out parameters. Function is (I am trying > to follow rigorous point of view) an attempt to model mathematical mappings. Do you mean that it's similar to const fucntions in C++? > Procedure is a more general thing than function, so it is not clear why > it may not have a dedicated out parameter called result: > > procedure [] [return ]; Well, I certainly agree with your point here.