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-Thread: 103376,9dec3ff1604723d9 X-Google-Attributes: gid103376,public X-Google-Language: ENGLISH,ASCII Path: g2news1.google.com!news2.google.com!news.maxwell.syr.edu!elnk-pas-nf1!newsfeed.earthlink.net!stamper.news.pas.earthlink.net!newsread1.news.pas.earthlink.net.POSTED!a6202946!not-for-mail From: Jeffrey Carter Organization: jrcarter commercial-at acm [period | full stop] org User-Agent: Mozilla/5.0 (Windows; U; Win98; en-US; rv:1.4) Gecko/20030624 MSIE X-Accept-Language: en-us, en MIME-Version: 1.0 Newsgroups: comp.lang.ada Subject: Re: Bitmanipulation in Ada References: <87k6vwrwym.fsf@insalien.org> In-Reply-To: Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 8bit Message-ID: <1XbVc.28184$9Y6.5960@newsread1.news.pas.earthlink.net> Date: Fri, 20 Aug 2004 00:52:13 GMT NNTP-Posting-Host: 63.184.8.137 X-Complaints-To: abuse@earthlink.net X-Trace: newsread1.news.pas.earthlink.net 1092963133 63.184.8.137 (Thu, 19 Aug 2004 17:52:13 PDT) NNTP-Posting-Date: Thu, 19 Aug 2004 17:52:13 PDT Xref: g2news1.google.com comp.lang.ada:2880 Date: 2004-08-20T00:52:13+00:00 List-Id: Bj�rn Persson wrote: > You can't send a function result to an in out parameter, can you? Make > Update_Integer a function instead: You can pass a conversion as a parameter; that's been around since at least Ada 83. Unchecked_Conversion is technically a function, but it's special, since it generally doesn't generate any code, much less a function call. You're correct, though; this should be a function. -- Jeff Carter "Sons of a silly person." Monty Python & the Holy Grail 02