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,FREEMAIL_FROM autolearn=ham autolearn_force=no version=3.4.4 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 103376,56131a5c3acc678e X-Google-Attributes: gid103376,public X-Google-ArrivalTime: 2003-11-26 10:09:04 PST Path: archiver1.google.com!news2.google.com!news.maxwell.syr.edu!small1.nntp.aus1.giganews.com!border1.nntp.aus1.giganews.com!intern1.nntp.aus1.giganews.com!nntp.giganews.com!nntp.comcast.com!news.comcast.com.POSTED!not-for-mail NNTP-Posting-Date: Wed, 26 Nov 2003 12:09:02 -0600 Date: Wed, 26 Nov 2003 13:09:01 -0500 From: "Robert I. Eachus" User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.4) Gecko/20030624 Netscape/7.1 (ax) X-Accept-Language: en-us, en MIME-Version: 1.0 Newsgroups: comp.lang.ada Subject: Re: Question about OO programming in Ada References: <21836716.smDW2dK3SM@linux1.krischik.com> <3357244.u7mJpG4184@linux1.krischik.com> In-Reply-To: <3357244.u7mJpG4184@linux1.krischik.com> Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit Message-ID: <1oidnUyrztiicVmiRVn-gg@comcast.com> NNTP-Posting-Host: 24.34.214.193 X-Trace: sv3-9wAxr5Q9yjB6laoeJvqS+kPzX7oVU2O8g+gYvssIEo1vk9lncW5uprfr6XeyuKJQ5e8b7gWmb/34O0k!SjYD10ZIYx4IpL55XHfV4B4I4TwXm1MZPWlxX2I+ufvneraYZfrAn+RShescOg== X-Complaints-To: abuse@comcast.net X-DMCA-Complaints-To: dmca@comcast.net X-Abuse-and-DMCA-Info: Please be sure to forward a copy of ALL headers X-Abuse-and-DMCA-Info: Otherwise we will be unable to process your complaint properly X-Postfilter: 1.1 Xref: archiver1.google.com comp.lang.ada:2970 Date: 2003-11-26T13:09:01-05:00 List-Id: Martin Krischik wrote: > Depends. You can return any non limited type with a function. Ada will will > use by reference or by value depends what is best. functions however can > only have in parameters. And you can not return a limited type. Nope. You can have a function that returns a limited type. The problem is that you can't assign the result. But you can use the function in a name to get to a component of the object returned. Very much a language lawyer point. We are trying to extend Ada for the next revision to make constructors easier to write for limited types. -- Robert I. Eachus 100% Ada, no bugs--the only way to create software.