comp.lang.ada
 help / color / mirror / Atom feed
From: "Alexander Boucke" <alexb@lufmech.rwth-aachen.de>
Subject: Re: Renaming subprogram and default_expression
Date: Thu, 14 Feb 2002 16:46:30 +0100
Date: 2002-02-14T15:46:33+00:00	[thread overview]
Message-ID: <a4gm4p$3fr$1@nets3.rz.RWTH-Aachen.DE> (raw)
In-Reply-To: 87zo2cgkib.fsf@deneb.enyo.de


Florian Weimer wrote in message <87zo2cgkib.fsf@deneb.enyo.de>...
>I think so.  I'm currently tracking it down.  It appears that the
>generated body for the renaming declaration is checked for full
>conformance to the specification of the renamed subprogram, which is
>wrong.


This does not seem to be the case for strings edit:

package body Strings_Edit

......
   package Roman_Edit is
      procedure Get
                (  Source  : in String;
                   Pointer : in out Integer;
                   Value   : out Roman;
                   First   : in Roman := Roman'First;
                   Last    : in Roman := Roman'Last;
                   ToFirst : in Boolean := False;
                   ToLast  : in Boolean := False
                );
..............
   end Roman_Edit;
   package body Roman_Edit is separate;

   procedure Get
             (  Source  : in String;
                Pointer : in out Integer;
                Value   : out Roman;
                First   : in Roman := Roman'First;
                               -- ^^ comment this
                Last    : in Roman := Roman'Last;
                                -- ^^ comment this
                ToFirst : in Boolean := False;
                ToLast  : in Boolean := False
             )  renames Roman_Edit.Get;
...............
end Strings_Edit;

Type roman is range 1..3999; is defined in strings edit.ads
Note, that gnat3.14p does not complain about the preset values for the
booelan arguments, only for the new integer type. If I comment these default
values, the program compiles. This seems to be the same error as in the
short testprog. starting this thread: A new integer-type was used there,
too.
I assume now, that the selfdefined type makes the problem here.

Regards,
Alexander





  reply	other threads:[~2002-02-14 15:46 UTC|newest]

Thread overview: 15+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2002-02-14 11:52 Renaming subprogram and default_expression 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 [this message]
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
  -- strict thread matches above, loose matches on Subject: below --
2002-02-15  5:38 Christoph Grein
2002-02-14 10:51 Florian Weimer
2002-02-14 11:31 ` sk
replies disabled

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