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.3 required=5.0 tests=BAYES_00,INVALID_MSGID autolearn=no autolearn_force=no version=3.4.4 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 103376,d17561d7e5eba62c X-Google-Attributes: gid103376,public From: "Matthew Heaney" Subject: Re: An alternative to Unchecked Conversion Date: 1999/12/16 Message-ID: <3859a3ad_2@news1.prserv.net>#1/1 X-Deja-AN: 561784792 Content-transfer-encoding: 7bit References: <38596575_4@news1.prserv.net> <3859701a@rsl2.rslnet.net> Content-Type: text/plain; charset="US-ASCII" X-Complaints-To: abuse@prserv.net X-Trace: 17 Dec 1999 02:45:01 GMT, 129.37.213.16 Organization: Global Network Services - Remote Access Mail & News Services Mime-version: 1.0 Newsgroups: comp.lang.ada Date: 1999-12-16T00:00:00+00:00 List-Id: In article <3859701a@rsl2.rslnet.net> , "Tom Hargraves" wrote: > I welcome comments re. the technical merits of address mapping vs. > unchecked_conversion. For me address mapping worked fine, whereas > unchecked_conversion did a lot of additional data copying. So that's why I > didn't use it. What did I loose? The object declaration declare function To_Unsigned is new Unchecked_Conversion (Character, Unsigned_8); C_As_Byte : constant Unsigned_8 := To_Unsigned ('A'); begin should be identical to the declaration declare C : constant Character := 'A'; begin If the former is more expensive than the latter, then your compiler is broken.