comp.lang.ada
 help / color / mirror / Atom feed
From: Florian Weimer <fw@deneb.enyo.de>
Subject: Renaming subprogram and default_expression
Date: Thu, 14 Feb 2002 11:51:08 +0100
Date: 2002-02-14T10:50:11+00:00	[thread overview]
Message-ID: <873d04jq03.fsf@deneb.enyo.de> (raw)

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;



             reply	other threads:[~2002-02-14 10:51 UTC|newest]

Thread overview: 15+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2002-02-14 10:51 Florian Weimer [this message]
2002-02-14 11:31 ` Renaming subprogram and default_expression sk
  -- strict thread matches above, loose matches on Subject: below --
2002-02-14 11:52 Christoph Grein
2002-02-14 12:04 ` Florian Weimer
2002-02-14 12:46   ` Lutz Donnerhacke
2002-02-14 13:15     ` Florian Weimer
2002-02-14 14:01   ` Alexander Boucke
2002-02-14 15:18     ` Florian Weimer
2002-02-14 15:46       ` Alexander Boucke
2002-02-14 15:58         ` Florian Weimer
2002-02-14 16:24           ` Alexander Boucke
2002-02-14 16:31           ` Larry Hazel
2002-02-14 16:35           ` Florian Weimer
2002-02-15  8:40             ` Lutz Donnerhacke
2002-02-15  5:38 Christoph Grein
replies disabled

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox