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,78b2880bc7e78e39 X-Google-Attributes: gid103376,public X-Google-ArrivalTime: 2001-03-20 07:47:56 PST Path: supernews.google.com!sn-xit-02!supernews.com!news.gv.tsc.tdk.com!news.iac.net!news-out.cwix.com!newsfeed.cwix.com!news-hog.berkeley.edu!ucberkeley!newsfeed.stanford.edu!feed.textport.net!newsranger.com!www.newsranger.com!not-for-mail Newsgroups: comp.lang.ada From: Ted Dennison Sender: usenet@www.newsranger.com References: <98qumf$5sf$1@nh.pace.co.uk> <98r4g1$7r1$1@nh.pace.co.uk> <3ab1d090$1@pull.gecm.com> <98t8la$rc$1@nh.pace.co.uk> <3ab72c8f$1@pull.gecm.com> <997pq4$i35$1@nh.pace.co.uk> Subject: Re: RISC Message-ID: Date: Tue, 20 Mar 2001 15:45:47 GMT NNTP-Posting-Host: 127.0.0.1 X-Complaints-To: abuse@newsranger.com X-Trace: www.newsranger.com 985103147 127.0.0.1 (Tue, 20 Mar 2001 10:45:47 EST) NNTP-Posting-Date: Tue, 20 Mar 2001 10:45:47 EST Organization: http://www.newsranger.com Xref: supernews.google.com comp.lang.ada:5901 Date: 2001-03-20T15:45:47+00:00 List-Id: In article <997pq4$i35$1@nh.pace.co.uk>, Marin David Condic says... > >"Martin Dowie" wrote in message >news:3ab72c8f$1@pull.gecm.com... >> I have to confess to using checked conversion - I hadn't concidered >> overlays. >> >Do you mean unchecked conversion? That works, but it forces you to move the >data twice just to satisfy language rules & may be too inefficient for some >apps. Its not A Bad Thing in my estimation, but I'd rather not have to. That's why if the object is largish I typically use unchecked_conversion on pointers to the object instead. Depending on the smarts of the compiler, that might not generate any code at all. I don't like "for use at" overlays. For one thing, initializations get (re)done when the overlay happens, which could wipe out important stuff. For another, the aliasing is (generally) given a much wider scope than is achievable with unchecked conversion. --- T.E.D. homepage - http://www.telepath.com/dennison/Ted/TED.html home email - mailto:dennison@telepath.com