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-Thread: 103376,703c4f68db81387d X-Google-Thread: 109fba,703c4f68db81387d X-Google-Thread: 115aec,703c4f68db81387d X-Google-Thread: f43e6,703c4f68db81387d X-Google-Attributes: gid103376,gid109fba,gid115aec,gidf43e6,public X-Google-Language: ENGLISH,ASCII-7-bit Path: g2news1.google.com!news1.google.com!proxad.net!proxad.net!194.159.246.34.MISMATCH!peer-uk.news.demon.net!kibo.news.demon.net!news.demon.co.uk!demon!not-for-mail From: Simon Wright Newsgroups: comp.lang.ada,comp.lang.c++,comp.realtime,comp.software-eng Subject: Re: [OT] Re: Teaching new tricks to an old dog (C++ -->Ada) Date: 05 Mar 2005 20:55:31 +0000 Organization: Pushface Sender: simon@smaug.pushface.org Message-ID: References: <4229bad9$0$1019$afc38c87@news.optusnet.com.au> <1110032222.447846.167060@g14g2000cwa.googlegroups.com> <871xau9nlh.fsf@insalien.org> <3SjWd.103128$Vf.3969241@news000.worldonline.dk> <87r7iu85lf.fsf@insalien.org> NNTP-Posting-Host: pogner.demon.co.uk Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: news.demon.co.uk 1110056221 15135 62.49.19.209 (5 Mar 2005 20:57:01 GMT) X-Complaints-To: abuse@demon.net NNTP-Posting-Date: Sat, 5 Mar 2005 20:57:01 +0000 (UTC) User-Agent: Gnus/5.09 (Gnus v5.9.0) Emacs/21.1 Xref: g2news1.google.com comp.lang.ada:8677 comp.lang.c++:44219 comp.realtime:961 comp.software-eng:4492 Date: 2005-03-05T20:55:31+00:00 List-Id: Ludovic Brenta writes: > * accessibility rules are rather complex, but they are designed to > minimise the chance of mistakes. Basically, the scope of a pointer > type must be included in the scope of the pointed-to type. This > makes many mistakes impossible, such as returning a pointer to an > object which no longer exists. It is extremely easy to make dangling pointers. Ada makes it hard to have pointers to objects whose _type_ has gone out of scope, but that's fairly unusual! -- Simon Wright 100% Ada, no bugs.