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,fee8802cc3d8334d X-Google-Attributes: gid103376,public X-Google-Thread: 10a146,fee8802cc3d8334d X-Google-Attributes: gid10a146,public From: "Jean-Pierre Rosen" Subject: Re: Ada and Java. different behaviour. casting long to int problem. Date: 1999/06/17 Message-ID: <7kaa6m$nr3$1@wanadoo.fr>#1/1 X-Deja-AN: 490583678 Content-Transfer-Encoding: 8bit References: <7jt2c0$vrb@drn.newsguy.com> <7k57vb$1ipf@drn.newsguy.com> <3766650F.705125B7@pwfl.com> <7k64t7$igo$1@its.hooked.net> <7k689a$ci2@drn.newsguy.com> <3766C842.E1EAB60A@pwfl.com> <3766D1CC.D712895E@itools.symantec.com> <7k8nn5$qcb$1@its.hooked.net> 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 929606678 24419 164.138.50.91 (17 Jun 1999 08:04:38 GMT) Organization: Adalog Mime-Version: 1.0 NNTP-Posting-Date: 17 Jun 1999 08:04:38 GMT Newsgroups: comp.lang.ada,comp.lang.java.programmer Date: 1999-06-17T08:04:38+00:00 List-Id: Mike Silva a �crit dans le message <7k8nn5$qcb$1@its.hooked.net>... > >The situation is more analogous to taking a somebody who's driven for years, >and giving them a car which is designed such that at 60 mph it suddenly >shifts into reverse. Below 60 mph everything is normal. He's not an idiot, >and he's not incompetent, but no matter how hard he tries one day he's going >to forget and exceed 60 mph and whammo! (but hey, it was in the manual!) >Things designed to be used by humans should strive for "reasonable", >"expected" behavior whenever possible, and should notify the human when >that's not possible. > Compare these quotes (from memory): >From one of the early books on C by K&R: "C was designed with the idea that the programmer is a reasonable person who knows what he's doing". >From the introduction of the Ada LRM: "Ada was designed with consideration that programming is a human activity". I'll let the reader meditate that these considerations lead to completely opposed solutions... --------------------------------------------------------- J-P. Rosen (Rosen.Adalog@wanadoo.fr) Visit Adalog's web site at http://perso.wanadoo.fr/adalog