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,13f10cac2d21b84f X-Google-Attributes: gid103376,public X-Google-ArrivalTime: 2002-04-30 18:31:24 PST Path: archiver1.google.com!postnews1.google.com!not-for-mail From: robert_s_quinn@yahoo.com (Robert Quinn) Newsgroups: comp.lang.ada Subject: Re: Is this a GNAT bug??? Date: 30 Apr 2002 18:31:23 -0700 Organization: http://groups.google.com/ Message-ID: References: <9gBz8.4053$451.2378814669@newssvr21.news.prodigy.com> NNTP-Posting-Host: 67.33.197.58 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 8bit X-Trace: posting.google.com 1020216683 24374 127.0.0.1 (1 May 2002 01:31:23 GMT) X-Complaints-To: groups-abuse@google.com NNTP-Posting-Date: 1 May 2002 01:31:23 GMT Xref: archiver1.google.com comp.lang.ada:23307 Date: 2002-05-01T01:31:23+00:00 List-Id: tmoran@acm.org wrote in message news:<9gBz8.4053$451.2378814669@newssvr21.news.prodigy.com>... > > type Message_Type_Access is access Message_Type; > > function Get_Message_Data is new Unchecked_Conversion > > (SOURCE => System.ADDRESS, > > TARGET => Message_Type_Access); > This is not good Ada. [snip] There is no reason to > assume an unchecked conversion from System.Address to an access > type will work as you hope. Ahh, thanks for the note. I used the Unchecked_Conversion out of ignorance and habit, since the system I actually work on uses it a lot. Addresses are passed between tasks and then converted to an appropriate access type. Or sometimes data is read off a socket, an address passed to a task, then converted to an appropriate access type. So I've seen this method used for both intertask communications and for client-server communications. Anyway I seledom delve into this realm, which is why I'm asking questions - thanks! Robert Quinn