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,a327d56b3d5e9a4 X-Google-Attributes: gid103376,public X-Google-ArrivalTime: 2002-11-08 05:26:39 PST Path: archiver1.google.com!news1.google.com!newsfeed.stanford.edu!canoe.uoregon.edu!arclight.uoregon.edu!wn13feed!wn11feed!worldnet.att.net!204.127.198.203!attbi_feed3!attbi.com!rwcrnsc51.ops.asp.att.net.POSTED!not-for-mail From: "Jeffrey Creem" Newsgroups: comp.lang.ada References: <3dcbb4e4$0$299$bed64819@news.gradwell.net> Subject: Re: Booch: iterator invalidation X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 6.00.2800.1106 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1106 Message-ID: NNTP-Posting-Host: 66.31.5.146 X-Complaints-To: abuse@attbi.com X-Trace: rwcrnsc51.ops.asp.att.net 1036761998 66.31.5.146 (Fri, 08 Nov 2002 13:26:38 GMT) NNTP-Posting-Date: Fri, 08 Nov 2002 13:26:38 GMT Organization: AT&T Broadband Date: Fri, 08 Nov 2002 13:26:38 GMT Xref: archiver1.google.com comp.lang.ada:30585 Date: 2002-11-08T13:26:38+00:00 List-Id: "Victor Porton" wrote in message news:3dcbb4e4$0$299$bed64819@news.gradwell.net... > What are conditions when Booch iterators are invalidated? > It is missing in the documentation. > > It also would be great to have the debug version of Booch, checking > validity of iterators and raising an exception. With GNAT it can be > done as in C by #ifdef/#endif preprocessor directives (assigning a Usually no need to resort to #ifdef preprocessor stuff.. Just make a generic formal that says error checking enabled. Generic actual parameter is a constant/static then any decent compiler will optimize out any of the actual checks in the object code and you get the same effect as the #ifdefs without the lack of portability.