From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on polar.synack.me X-Spam-Level: X-Spam-Status: No, score=-1.3 required=5.0 tests=BAYES_00,INVALID_MSGID autolearn=no autolearn_force=no version=3.4.4 X-Google-Language: ENGLISH,ASCII X-Google-Thread: 103376,42b96374c851ce5a X-Google-Attributes: gid103376,public From: "Jean-Pierre Rosen" Subject: Re: Ada for numerics computation (i.e. forget Fortran ?) Date: 1999/04/28 Message-ID: <7g7fo3$rv9$1@wanadoo.fr>#1/1 X-Deja-AN: 471949332 Content-Transfer-Encoding: 8bit References: <372083A1.45A5EB97@t-online.de> <7fqeua$ih8$1@pegasus.csx.cam.ac.uk> <8790bhslfz.fsf@bglbv.my-dejanews.com> <7fvbth$4m4$1@news.rz.uni-karlsruhe.de> <7fvpl8$mpm@drn.newsguy.com> <7g1e20$t12$1@wanadoo.fr> <7g1n08$8t8$1@news.rz.uni-karlsruhe.de> <7g1qcm$o4$2@pegasus.csx.cam.ac.uk> <7g4av3$bgd@drn.newsguy.com> <7g4oe1$3dj$1@wanadoo.fr> <7g6c5v$8tg$2@news.rz.uni-karlsruhe.de> Content-Type: text/plain; charset="iso-8859-1" X-MimeOLE: Produced By Microsoft MimeOLE V4.72.2120.0 X-Complaints-To: abuse@wanadoo.fr X-Trace: wanadoo.fr 925319747 28649 193.250.194.112 (28 Apr 1999 17:15:47 GMT) Organization: Adalog Mime-Version: 1.0 NNTP-Posting-Date: 28 Apr 1999 17:15:47 GMT Newsgroups: comp.lang.ada Date: 1999-04-28T17:15:47+00:00 List-Id: Edwin Guenthner a �crit dans le message <7g6c5v$8tg$2@news.rz.uni-karlsruhe.de>... >Jean-Pierre Rosen 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