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=2.1 required=5.0 tests=BAYES_20,INVALID_MSGID, REPLYTO_WITHOUT_TO_CC autolearn=no autolearn_force=no version=3.4.4 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: fac41,2c6139ce13be9980 X-Google-Attributes: gidfac41,public X-Google-Thread: 103376,3d3f20d31be1c33a X-Google-Attributes: gid103376,public X-Google-Thread: 1108a1,2c6139ce13be9980 X-Google-Attributes: gid1108a1,public From: Ken Garlington Subject: Re: Safety-critical development in Ada and Eiffel Date: 1997/07/12 Message-ID: <33C83664.67F5@flash.net>#1/1 X-Deja-AN: 256514945 References: <5q54kf$d62@bagan.srce.hr> Organization: Flashnet Communications, http://www.flash.net Reply-To: keg0@flash.net Newsgroups: comp.object,comp.lang.ada,comp.lang.eiffel Date: 1997-07-12T00:00:00+00:00 List-Id: Kazimir Majorinc wrote: > > Eiffel is not safe language. Look for example Shang's article > Is a Cow an Animal? Somewhere on Net. Look at Ellipse CIrcle dilemma. > Should array of superclass be superclass of array of subclass? Noone > knows. Do you accept Liskov Substitution principle? Do you accept > derivation from abstract classes only? Noone knows. Eiffel's assertions > are good, but it's like to drive motorcycle 250 km/hour and say that > helmet will help you. > > For some of us, OO is not only suspect, but even wrong paradigm. It's > place is in laboratory, it is not good for mainstream programming, not > to mention safety. > > If you are interested primarily in safety, you should give up from OO, and > choose good old procedural paradigm. It is not far less powerfull, but it > is certenly safer. Ada 83 is maybe the best answer. I'm not sure I'd call Ada 83 "procedural." SPC calls it "object-based". My personal experience is that Ada 83 objects are much better for handing complex safety-critical systems than procedural objects in languages like FORTRAN and JOVIAL. For very simple systems, I suspect it doesn't matter. As to whether full OO languages like Ada 95 introduce safety issues... we'll see. > > Regards, > ______________________________________________________________ > Kazimir Majorinc, dipl. ing. of mathematics > Faculty of Natural Sciences and Math, Uni of Zagreb, Croatia > mailto: kmajor@public.srce.hr http://public.srce.hr/~kmajor > ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~