comp.lang.ada
 help / color / mirror / Atom feed
From: "Keith" <nono@joimail.net>
Subject: Re: Array type conversion
Date: Fri, 18 Oct 2002 20:27:00 -0700
Date: 2002-10-18T20:27:00-07:00	[thread overview]
Message-ID: <aoqje7$316$1@news.chatlink.com> (raw)
In-Reply-To: aoobn7$kn0$1@s1.read.news.oleane.net

But generating the code to do a simple copy versus a more complex conversion
based upon whether the subtype representations are the same or not does not
seem to be much of an inefficiency.

"> A derived type needs not have the same representation as its ancestor
type.
> If the subtypes statically match, the compiler can perform a simple memory
> copy. Otherwise, the compiler must in effect generate the exact equivalent
> of the loop you give, and there is a deliberate decision in Ada to avoid,
as
> far as possible, *hidden* inefficiencies.
>
> --
> ---------------------------------------------------------
>            J-P. Rosen (rosen@adalog.fr)
> Visit Adalog's web site at http://www.adalog.fr
>
>





  parent reply	other threads:[~2002-10-19  3:27 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2002-10-18  4:43 Array type conversion Keith
2002-10-18  6:55 ` Jean-Pierre Rosen
2002-10-18 15:15   ` Robert A Duff
2002-10-19  3:27   ` Keith [this message]
2002-10-18 14:59 ` Robert A Duff
replies disabled

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