comp.lang.ada
 help / color / mirror / Atom feed
From: bs@augusta.UUCP (Burch Seymour)
Subject: Conformance rules question
Date: 27 Apr 88 14:08:50 GMT	[thread overview]
Message-ID: <1103@augusta.UUCP> (raw)

In the following code package paramtest will compile without error
even though the string initialization values in the spec and body
do not match. Package paramtest2, which uses an integer argument
with different values will fail. What is the rational behind this?

--------------------------------------------------------------
package paramtest is
  procedure string_in ( a_string : in string := "default value");
end paramtest;

package body paramtest is
  procedure string_in ( a_string : in string := "other default value") is
    begin
     null;
  end string_in;
end paramtest;

package paramtest2 is
  procedure integer_in ( an_integer : in integer := 15 );
end paramtest2;

package body paramtest2 is
  procedure integer_in ( an_integer : in integer := 25 ) is
    begin
     null;
  end integer_in;
end paramtest2;

             reply	other threads:[~1988-04-27 14:08 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
1988-04-27 14:08 Burch Seymour [this message]
1988-04-28 12:22 ` Conformance rules question Robert Firth
replies disabled

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