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,28dcfc3d6dc519b8,start X-Google-Attributes: gid103376,public X-Google-ArrivalTime: 2002-02-14 03:01:02 PST Path: archiver1.google.com!news1.google.com!sn-xit-02!supernews.com!news-x2.support.nl!feed.news.nacamar.de!news.fh-hannover.de!news.cid.net!news.enyo.de!not-for-mail From: Florian Weimer Newsgroups: comp.lang.ada Subject: Renaming subprogram and default_expression Date: Thu, 14 Feb 2002 11:51:08 +0100 Organization: Enyo -- not your organization Message-ID: <873d04jq03.fsf@deneb.enyo.de> NNTP-Posting-Host: deneb.enyo.de Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: cygnus.enyo.de 1013683811 6517 212.9.189.171 (14 Feb 2002 10:50:11 GMT) X-Complaints-To: abuse@enyo.de NNTP-Posting-Date: 14 Feb 2002 10:50:11 GMT Cancel-Lock: sha1:gGn3O1ZujgUKH7TapcTTkISDHec= Xref: archiver1.google.com comp.lang.ada:19995 Date: 2002-02-14T10:50:11+00:00 List-Id: Is anything wrong with the following program? Maybe I'm just confused, but it looks perfectly legal to me. procedure Defaults is type Typ is new Integer; procedure Original (X : Typ); procedure Renamed (X : Typ := -1); procedure Renamed (X : Typ := -1) renames Original; procedure Original (X : Typ) is begin null; end Original; begin null; end Defaults;