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.1 required=5.0 tests=BAYES_00, PP_MIME_FAKE_ASCII_TEXT autolearn=no autolearn_force=no version=3.4.4 X-Google-Language: ENGLISH,ASCII X-Google-Thread: 103376,56131a5c3acc678e X-Google-Attributes: gid103376,public X-Google-ArrivalTime: 2003-11-27 06:05:02 PST Path: archiver1.google.com!news2.google.com!news.maxwell.syr.edu!oleane.net!oleane!nnrp.oleane.net!skymaster!nobody From: "Jean-Pierre Rosen" Newsgroups: comp.lang.ada Subject: Re: Question about OO programming in Ada Date: Thu, 27 Nov 2003 14:45:33 +0100 Organization: Adalog Message-ID: References: <21836716.smDW2dK3SM@linux1.krischik.com> <3357244.u7mJpG4184@linux1.krischik.com> <1oidnUyrztiicVmiRVn-gg@comcast.com> NNTP-Posting-Host: mailhost.axlog.fr X-Trace: s1.read.news.oleane.net 1069941709 4360 195.25.228.57 (27 Nov 2003 14:01:49 GMT) X-Complaints-To: abuse@oleane.net NNTP-Posting-Date: Thu, 27 Nov 2003 14:01:49 +0000 (UTC) X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 5.50.4522.1200 X-MimeOLE: Produced By Microsoft MimeOLE V5.50.4522.1200 Xref: archiver1.google.com comp.lang.ada:2991 Date: 2003-11-27T14:45:33+01:00 List-Id: "Robert I. Eachus" a �crit dans le message news: 1oidnUyrztiicVmiRVn-gg@comcast.com... > 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. ... or pass it as an actual to a subprogram. Quite common actually: Put_Line (Standard_Output, "It works!"); -- --------------------------------------------------------- J-P. Rosen (rosen@adalog.fr) Visit Adalog's web site at http://www.adalog.fr