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,f37364fd74b84042 X-Google-Attributes: gid103376,domainid0,public,usenet X-Google-Language: ENGLISH,ASCII Path: g2news1.google.com!news1.google.com!news.glorb.com!news.cs.univ-paris8.fr!feeder1-2.proxad.net!proxad.net!feeder1-1.proxad.net!oleane.net!oleane!hunter.axlog.fr!nobody From: Jean-Pierre Rosen Newsgroups: comp.lang.ada Subject: Re: Child Package Operator Visibility Date: Mon, 14 Apr 2008 09:42:21 +0200 Organization: Adalog Message-ID: <5t1vtf.3ft.ln@hunter.axlog.fr> References: <6b08d1d0-1896-4951-8528-e11bef196dd7@1g2000prf.googlegroups.com> NNTP-Posting-Host: mailhost.axlog.fr Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 8bit X-Trace: s1.news.oleane.net 1208157607 4614 195.25.228.57 (14 Apr 2008 07:20:07 GMT) X-Complaints-To: abuse@oleane.net NNTP-Posting-Date: Mon, 14 Apr 2008 07:20:07 +0000 (UTC) User-Agent: Thunderbird 2.0.0.12 (Windows/20080213) In-Reply-To: Xref: g2news1.google.com comp.lang.ada:20930 Date: 2008-04-14T09:42:21+02:00 List-Id: Robert A Duff a �crit : > Nobody would type: > > function "+" (X, Y: T) return T renames Pkg."+"; > function "-" (X, Y: T) return T renames Pkg."-"; > ... > > Instead, you type: > > function "+" (X, Y: T) return T renames Pkg."+"; > > Cut&paste, to get: > > function "+" (X, Y: T) return T renames Pkg."+"; > function "+" (X, Y: T) return T renames Pkg."+"; > ... > > Then fix it up: > > function "+" (X, Y: T) return T renames Pkg."+"; > function "-" (X, Y: T) return T renames Pkg."+"; > ... > > Oops. Now you've got a nasty bug, which is hard to see. ;-) > Unless you use AdaControl's rule: "check declarations (non_identical_renaming)" (Yes, it's a plug. Sorry, couldn't resist) -- --------------------------------------------------------- J-P. Rosen (rosen@adalog.fr) Visit Adalog's web site at http://www.adalog.fr