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=-0.3 required=5.0 tests=BAYES_00, REPLYTO_WITHOUT_TO_CC autolearn=no autolearn_force=no version=3.4.4 X-Google-Thread: 103376,9fb8e2af320d5b3e X-Google-Attributes: gid103376,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!feeder2-2.proxad.net!newsfeed.arcor.de!newsspool1.arcor-online.net!news.arcor.de.POSTED!not-for-mail From: "Dmitry A. Kazakov" Subject: Re: Bus error Newsgroups: comp.lang.ada User-Agent: 40tude_Dialog/2.0.15.1 MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 8bit Reply-To: mailbox@dmitry-kazakov.de Organization: cbb software GmbH References: <0367891DA5DA7E408D42A860FA002F44B0CC48@sma2901.cr.eurocopter.corp> <1l4yqvxoid4n1.1u8eo4oo8ml4m$.dlg@40tude.net> <4685280c$0$14869$9b4e6d93@newsspool4.arcor-online.net> <5cba6f.d2f.ln@hunter.axlog.fr> Date: Mon, 2 Jul 2007 14:00:30 +0200 Message-ID: NNTP-Posting-Date: 02 Jul 2007 13:57:21 CEST NNTP-Posting-Host: 2b9495e5.newsspool3.arcor-online.net X-Trace: DXC=VGEV4L0gLMcF=Q^Z^V3H4Fo<]lROoRA^YC2XCjHcbIL4lIXnVZ1KADNcfSJ;bb[EFCTGGVUmh?DLK[5LiR>kgBY\5Z]KRgfkG X-Complaints-To: usenet-abuse@arcor.de Xref: g2news1.google.com comp.lang.ada:16381 Date: 2007-07-02T13:57:21+02:00 List-Id: On Mon, 02 Jul 2007 10:01:00 +0200, Jean-Pierre Rosen wrote: > Robert A Duff a �crit : >> function "+"(...) return ... renames Some_Package."+"; >> function "-"(...) return ... renames Some_Package."+"; >> >> Note cut&paste error on second line. >> > Next version of AdaControl (hint: comming soon :-) has a > "non_identical_renaming" rule that will spot this. Great. However, there is at least one quite specific case where renaming is indeed renaming rather than flattening names. How will AdaControl handle this: type My_Integer is ...; function Add (Left, Right : My_Integer return My_Integer renames "+"; function "+" (Left, Right : My_Integer return My_Integer; Add is a renaming of the inherited implementation to use it later in the custom implementation of "+". -- Regards, Dmitry A. Kazakov http://www.dmitry-kazakov.de