From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.4.5-pre1 (2020-06-20) on ip-172-31-74-118.ec2.internal X-Spam-Level: X-Spam-Status: No, score=-1.9 required=3.0 tests=BAYES_00 autolearn=ham autolearn_force=no version=3.4.5-pre1 Date: 22 Sep 93 14:04:30 GMT From: cis.ohio-state.edu!math.ohio-state.edu!howland.reston.ans.net!spool.mu.ed u!umn.edu!News.MR.Net!Brian.Hanson@ucbvax.Berkeley.EDU (Brian Hanson) Subject: Question on Ada 9X vs Ada 83. Message-ID: List-Id: I have a question about a compability issue and wonder if anyone on the net knows the answer or knows whom I could direct my question. The issue is "Derived type inherits all operations of Parent". An example is package P is type Some_Array is array (1 .. 10) of Integer; function "&" (Left, Right: Some_Array) return Some_Array; type New_Array is new Some_Array; end P; I understand that in Ada 9X, New_Array inherits "&" from Some_Array and that does not happen in Ada 83. The my questions are: 1 - Would this happen if these declarations were in a procedure body? 2 - If the function declaration was moved after the type declaration for New_Array would New_Array still inherit the "&" function from Some_Array? I have tried to figure this out by reading the Ada 9X RM but it was not very clear to me. Brian Hanson