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,43bc631fb4a56c2a X-Google-Attributes: gid103376,public X-Google-ArrivalTime: 2001-06-07 07:01:53 PST Path: archiver1.google.com!newsfeed.google.com!newsfeed.stanford.edu!news-spur1.maxwell.syr.edu!news.maxwell.syr.edu!newsfeed1.uni2.dk!news.net.uni-c.dk!not-for-mail From: Jacob Sparre Andersen Newsgroups: comp.lang.ada Subject: Re: Unchecked_Conversion Date: Thu, 07 Jun 2001 16:01:50 +0200 Organization: Centre for Chaos and Turbulence Studies, Niels Bohr Institute Message-ID: <3B1F894E.BB943BCC@nbi.dk> References: <9fnbtt$ild$1@e3k.asi.ansaldo.it> NNTP-Posting-Host: garfield.nbi.dk Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Trace: news.net.uni-c.dk 991922512 37012 130.225.212.232 (7 Jun 2001 14:01:52 GMT) X-Complaints-To: usenet@news.net.uni-c.dk NNTP-Posting-Date: Thu, 7 Jun 2001 14:01:52 +0000 (UTC) X-Mailer: Mozilla 4.74 [en] (X11; U; Linux 2.0.37 i686) X-Accept-Language: fo,da,no,sv,is,de,fr,en Xref: archiver1.google.com comp.lang.ada:8317 Date: 2001-06-07T16:01:50+02:00 List-Id: Lele: The reason both features (Unchecked_Conversion and colocated variables) exist is that they both can be the right way to solve a problem. > Are there particular risks about using Unchecked_Conversion? Yes. If the size of the two types isn't the same, the result of an Unchecked_Conversion is undefined (IIRC). > Is it a better approach the address attribute? It has the same problem, but in a slightly different form. Show us an example we can comment on. Jacob -- "Any, sufficiently complicated, experiment is indistinguishable from magic."