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,f2690a5e963b61b6 X-Google-Attributes: gid103376,public X-Google-Language: ENGLISH,ASCII-7-bit Path: g2news1.google.com!news2.google.com!newsread.com!news-xfer.newsread.com!news.glorb.com!border1.nntp.dca.giganews.com!nntp.giganews.com!local01.nntp.dca.giganews.com!nntp.megapath.net!news.megapath.net.POSTED!not-for-mail NNTP-Posting-Date: Wed, 20 Jul 2005 22:14:59 -0500 From: "Randy Brukardt" Newsgroups: comp.lang.ada References: <1120474891.635131.216700@g44g2000cwa.googlegroups.com> <1121573057.159416.274980@g49g2000cwa.googlegroups.com> <1121622050.676894.246740@g14g2000cwa.googlegroups.com> <%q%Ce.11640$1Y1.7177@fe02.lga> <1121870089.752445.108320@g49g2000cwa.googlegroups.com> Subject: Re: GCC 4.0 Ada.Containers Cursor danger. Date: Wed, 20 Jul 2005 22:18:06 -0500 X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 5.50.4952.2800 X-MimeOLE: Produced By Microsoft MimeOLE V5.50.4952.2800 Message-ID: NNTP-Posting-Host: 64.32.209.38 X-Trace: sv3-pKsgieyYbT+msd8dICtMObF+e3lTZq9gvz+NFmqUafxm0TlG63EKw0CwKvSqukosxuCQ2nZ0lMgqG/1!JG5H2SU0IBU/xykgGKIscedxoQQtw4OzBHqLYmhfc30pKS3pao9uxPmnmUoCs98YXJo/HpLQ5/pK X-Complaints-To: abuse@megapath.net X-DMCA-Complaints-To: abuse@megapath.net X-Abuse-and-DMCA-Info: Please be sure to forward a copy of ALL headers X-Abuse-and-DMCA-Info: Otherwise we will be unable to process your complaint properly X-Postfilter: 1.3.31 Xref: g2news1.google.com comp.lang.ada:3714 Date: 2005-07-20T22:18:06-05:00 List-Id: "Matthew Heaney" wrote in message news:1121870089.752445.108320@g49g2000cwa.googlegroups.com... ... > Cursors confer no greater safety than you get with named access types. > If this isn't clear, then yes, we need to better job of advertising > this feature. I don't agree with this statement. That fact that it is *possible* to check for dangling cursors shows that. It's completely impractical to do useful dangling access type checks (we tried to do so in Janus/Ada, but they almost never detect anything, and break some common Ada 83 idioms). Since I agree with your assertion that cursors shouldn't be kept around for long periods, its clear that a bit of additional space/time overhead is acceptable to get decent checking. As long as the checking is there, there is not going to be a problem. (Like all Ada checking, it should default to ON, of course, and be turned off only if critical.) Randy.