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 06:46:01 PST Path: supernews.google.com!sn-xit-03!supernews.com!freenix!wanadoo.fr!opentransit.net!fu-berlin.de!uni-berlin.de!b87b6.pppool.DE!not-for-mail From: "Dmitry A. Kazakov" Newsgroups: comp.lang.ada Subject: Re: Problem trying to implement generics. Date: Sun, 15 Apr 2001 15:48:07 +0200 Message-ID: <3AD9A697.8080402@elros.cbb-automation.de> 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> NNTP-Posting-Host: b87b6.pppool.de (213.7.135.182) Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit X-Trace: fu-berlin.de 987342255 9073462 213.7.135.182 (16 [77047]) User-Agent: Mozilla/5.0 (Windows; U; Win98; en-US; m18) Gecko/20001108 Netscape6/6.0 X-Accept-Language: en Xref: supernews.google.com comp.lang.ada:6899 Date: 2001-04-15T15:48:07+02:00 List-Id: 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. 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 ]; Regards, Dmitry Kazakov