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,13703514e3723cbe X-Google-Attributes: gid103376,public X-Google-ArrivalTime: 2001-08-17 10:06:21 PST Newsgroups: comp.lang.ada Path: archiver1.google.com!newsfeed.google.com!newsfeed.stanford.edu!newsfeeds.belnet.be!news.belnet.be!newsfeed.online.be!zur.uu.net!ash.uu.net!xyzzy!nntp From: Jeffrey Carter Subject: Re: C-style 'union' in Ada? X-Nntp-Posting-Host: e246420.msc.az.boeing.com Content-Type: text/plain; charset=us-ascii Message-ID: <3B7D4894.C342A35C@boeing.com> Sender: nntp@news.boeing.com (Boeing NNTP News Access) Content-Transfer-Encoding: 7bit Organization: The Boeing Company X-Accept-Language: en References: <9l7qon$d78$1@nntp9.atl.mindspring.net> <9li279$mhm$1@slb2.atl.mindspring.net> Mime-Version: 1.0 Date: Fri, 17 Aug 2001 16:38:44 GMT X-Mailer: Mozilla 4.5 [en]C-CCK-MCD Boeing Kit (WinNT; U) Xref: archiver1.google.com comp.lang.ada:12058 Date: 2001-08-17T16:38:44+00:00 List-Id: Ted Dennison wrote: > > Note that since Unchecked_Conversion is a function, an assignment of the value > will occur. That's why we usually perform it on pointers when the target data is > large buffers. Unchecked_Conversion is allowed to return its result "by reference". This allows a good compiler to avoid assignment when possible. -- Jeffrey Carter