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,LOTS_OF_MONEY 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 19:20:45 PST Path: archiver1.google.com!news1.google.com!newsfeed.stanford.edu!cyclone.bc.net!newsfeed.media.kyoto-u.ac.jp!news-peer.gradwell.net!not-for-mail Newsgroups: comp.lang.ada From: porton@ex-code.com (Victor Porton) Date: Fri, 08 Nov 2002 23:05:53 +0500 References: <3dcbb4e4$0$299$bed64819@news.gradwell.net> Subject: Re: Booch: iterator invalidation Mime-Version: 1.0 X-Newsreader: knews 1.0b.1 Content-Type: text/plain; charset=us-ascii Message-ID: <3dcc7efc$0$305$bed64819@news.gradwell.net> NNTP-Posting-Date: 09 Nov 2002 03:20:28 GMT NNTP-Posting-Host: 195.149.39.13 X-Trace: 1036812028 news.gradwell.net 305 mail2news/195.149.39.13 X-Complaints-To: news-abuse@gradwell.net Xref: archiver1.google.com comp.lang.ada:30618 Date: 2002-11-09T03:20:28+00:00 List-Id: In article , "Jeffrey Creem" writes: > "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. >> > 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. I suggested #ifdef because as I remeber I've readied somewhere that modern Ada compilers use code sharing for generics, not repeated compilation like C++. What about GNAT in particular?