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,f3437064e1091fec X-Google-Attributes: gid103376,public X-Google-ArrivalTime: 2003-07-11 13:07:32 PST Path: archiver1.google.com!news1.google.com!newsfeed.stanford.edu!news-spur1.maxwell.syr.edu!news.maxwell.syr.edu!nntp.abs.net!ash.uu.net!spool.news.uu.net!not-for-mail Date: Fri, 11 Jul 2003 16:07:05 -0400 From: Hyman Rosen User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.5a) Gecko/20030611 Thunderbird/0.1a X-Accept-Language: en-us, en MIME-Version: 1.0 Newsgroups: comp.lang.ada Subject: Re: What evil would happen? References: <5ad0dd8a.0307111151.4a08f95a@posting.google.com> In-Reply-To: <5ad0dd8a.0307111151.4a08f95a@posting.google.com> Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit Organization: KBC Financial Products Message-ID: <1057954025.510093@master.nyc.kbcfp.com> Cache-Post-Path: master.nyc.kbcfp.com!unknown@nightcrawler.nyc.kbcfp.com X-Cache: nntpcache 3.0.1 (see http://www.nntpcache.org/) NNTP-Posting-Host: 204.253.250.10 X-Trace: 1057954025 10659 204.253.250.10 Xref: archiver1.google.com comp.lang.ada:40205 Date: 2003-07-11T16:07:05-04:00 List-Id: Wojtek Narczynski wrote: > What would happen if a procedure could return a value like a function, > or a function could accept an out parameter? I don't know Ada well enough to answer this myself, so I'll ask here - can you make a generic function with generic parameters which correspond to the out parameters that you would like to pass into the function, and have the function write to those? If so, is that an acceptable workaround?