comp.lang.ada
 help / color / mirror / Atom feed
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.
Date: 22 Sep 93 14:04:30 GMT	[thread overview]
Message-ID: <CDrDrJ.4px@News.MR.Net> (raw)

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

             reply	other threads:[~1993-09-22 14:04 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
1993-09-22 14:04 cis.ohio-state.edu!math.ohio-state.edu!howland.reston.ans.net!spool.mu.ed [this message]
  -- strict thread matches above, loose matches on Subject: below --
1993-09-23 21:54 Question on Ada 9X vs Ada 83 Tucker Taft
replies disabled

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