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 12:44:43 PST Path: archiver1.google.com!newsfeed.google.com!newsfeed.stanford.edu!nntp.cs.ubc.ca!newsfeed.direct.ca!look.ca!newshub2.rdc1.sfba.home.com!news.home.com!news1.rdc1.sfba.home.com.POSTED!not-for-mail From: tmoran@acm.org Newsgroups: comp.lang.ada Subject: Re: Unchecked_Conversion References: <9fnbtt$ild$1@e3k.asi.ansaldo.it> X-Newsreader: Tom's custom newsreader Message-ID: Date: Thu, 07 Jun 2001 19:44:42 GMT NNTP-Posting-Host: 24.7.82.199 X-Complaints-To: abuse@home.net X-Trace: news1.rdc1.sfba.home.com 991943082 24.7.82.199 (Thu, 07 Jun 2001 12:44:42 PDT) NNTP-Posting-Date: Thu, 07 Jun 2001 12:44:42 PDT Organization: Excite@Home - The Leader in Broadband http://home.com/faster Xref: archiver1.google.com comp.lang.ada:8343 Date: 2001-06-07T19:44:42+00:00 List-Id: >risks about using Unchecked_Conversion? Is it a better approach the address >attribute? Unchecked_Conversion shows in the code everywhere you do a conversion, while 'address allocation only shows up at the declaration. Unchecked_Conversion lets the compiler at least warn you if the two representations are of different size, while 'address leaves you strictly on your own. 'address in some cases may surprise you with initialization code. >I'm a beginner ADA programmer (what a wonderful language!) and I've a As others have pointed out, it's relatively rare in Ada to do this sort of thing. As a beginning Ada programmer, are you perhaps just using a pre-Ada technique? There may be a better "Ada way" to do what you need.