From: "Jean-Pierre Rosen" <rosen.adalog@wanadoo.fr>
Subject: Re: Ada for numerics computation (i.e. forget Fortran ?)
Date: 1999/04/27
Date: 1999-04-27T16:25:37+00:00 [thread overview]
Message-ID: <7g4oe1$3dj$1@wanadoo.fr> (raw)
In-Reply-To: 7g4av3$bgd@drn.newsguy.com
me@me a �crit dans le message <7g4av3$bgd@drn.newsguy.com>...
[good stuff about reference semantics deleted]
>To make A get its own value of the object B, one needs to be explicit
and
>write
>
>A = B.clone();
>
>(Assuming B supports the clone() method).
>
But, as I noted in a previous message, this doesn't work if A and B
are two-dimensional arrays. You should then write:
for (i=0; i<B.length; i++)
A[i]=B[i].clone()
... unless A and B are tri-dimensional arrays, in which case you
should write:
(etc, etc.)
---------------------------------------------------------
J-P. Rosen (Rosen.Adalog@wanadoo.fr)
Visit Adalog's web site at http://perso.wanadoo.fr/adalog
next prev parent reply other threads:[~1999-04-27 0:00 UTC|newest]
Thread overview: 19+ messages / expand[flat|nested] mbox.gz Atom feed top
1999-04-23 0:00 Ada for numerics computation (i.e. forget Fortran ?) Hans N. Beck
1999-04-23 0:00 ` Markus Kuhn
1999-04-24 0:00 ` bglbv
1999-04-25 0:00 ` Edwin Guenthner
1999-04-25 0:00 ` bill
1999-04-25 0:00 ` Edwin Guenthner
1999-04-26 0:00 ` Jean-Pierre Rosen
1999-04-26 0:00 ` Edwin Guenthner
1999-04-26 0:00 ` Markus Kuhn
1999-04-27 0:00 ` me
1999-04-27 0:00 ` Matthew Heaney
1999-04-27 0:00 ` dennison
1999-04-27 0:00 ` Jean-Pierre Rosen [this message]
1999-04-28 0:00 ` Edwin Guenthner
1999-04-28 0:00 ` Jean-Pierre Rosen
1999-04-25 0:00 ` Robert Dewar
1999-04-23 0:00 ` Gautier
1999-04-23 0:00 ` Gautier
1999-04-27 0:00 ` Joachim Schroeer
replies disabled
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox