From: "Jean-Pierre Rosen" <rosen.adalog@wanadoo.fr>
Subject: Re: Ada for numerics computation (i.e. forget Fortran ?)
Date: 1999/04/28
Date: 1999-04-28T17:15:47+00:00 [thread overview]
Message-ID: <7g7fo3$rv9$1@wanadoo.fr> (raw)
In-Reply-To: 7g6c5v$8tg$2@news.rz.uni-karlsruhe.de
Edwin Guenthner a �crit dans le message
<7g6c5v$8tg$2@news.rz.uni-karlsruhe.de>...
>Jean-Pierre Rosen <rosen.adalog@wanadoo.fr> wrote:
>
>>
>> But, as I noted in a previous message, this doesn't work if A and B
>> are two-dimensional arrays. You should then write:
>
>Pardon? There is now law in Java that says:
>you are not allowed to write a clone method which will give you a
deep
>copy of a whole array.
>
>You have to iterate over all fields - but you should hide this detail
>from your user.
The trouble is that arrays are *implicit* classes. AFAIK, there is no
way to redefine a method for stuff[], only for stuff.
Therefore, you must package your array into a class. But if the user
of stuff wants to declare a stuff[], there is nothing you can do.
---------------------------------------------------------
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-28 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
1999-04-28 0:00 ` Edwin Guenthner
1999-04-28 0:00 ` Jean-Pierre Rosen [this message]
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