Article View: bit.listserv.simula
Article #489Eiffel & SIMULA
From: Henry E. Islo
Date: Wed, 06 Apr 1994 09:07
Date: Wed, 06 Apr 1994 09:07
30 lines
2406 bytes
2406 bytes
Dear Scott, One way to accomplish the "require" and "ensure" attributes of Eiffel objects in SIMULA is to declare a prefix class, let us call it CLASS protoPostal, with the the inner attributes "require" and "ensure" declared as procedures. Arguements to the procedures would define the conditions that are to be required and insured. Using protoPostal as a prefix to subclasses, for example protoPostal CLASS postal; will cause the class postal to inherit the attributes "require" and "ensure" from protoPostal. These attributes can then be used independently by all objects from the class postal which are generated in the model domain. Aside from the work of doing it yourself, which some might consider a disadvantage, it provides the user with the power and fexibility to write simple or advanced procedures for "require" and "ensure" . Cheers ... Henry Islo P.S. If you do a careful study and compare SIMULA and Eiffel and actually try to use the two on real problems, you will eventually and most likely want to become a member of the SIMULA Users Association. In which case you may request a registration form from me. As your studies deepen into the intricacies of SIMULA and Eiffel you may eventually come to one of the very central issues of object oriented programming, i.e. Quasi-Parallel Systems. In fact I think you will find that Eiffel in many respects is the apprentice that has only learned some of master SIMULA's skills.
Technical Details
Message-ID:
<9404060918.AA23184@io>Path:
arc1-ca.pugleaf.net!gmd.de!newsserver.jvnc.net!howland.reston.ans.net!darwin.sura.net!sgiblab!swrinde!news.dell.com!paladin.american.edu!auvm!CADCAM.KTH.SE!hioShow Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 113dd9,8706158a7bab194e,start X-Google-Attributes: gid113dd9,public X-Google-ArrivalTime: 1994-04-06 02:07:46 PST Path: arc1-ca.pugleaf.net!gmd.de!newsserver.jvnc.net!howland.reston.ans.net!darwin.sura.net!sgiblab!swrinde!news.dell.com!paladin.american.edu!auvm!CADCAM.KTH.SE!hio Comments: Gated by NETNEWS@AUVM.AMERICAN.EDU Newsgroups: bit.listserv.simula Return-Path: <@AUVM.AMERICAN.EDU,@UGA.CC.UGA.EDU:owner-simula@UGA.CC.UGA.EDU> Return-Path: <@UGA.CC.UGA.EDU,@BITNIC.EDUCOM.EDU:owner-simula@BITNIC.EDUCOM.EDU> Return-Path: <@BITNIC.EDUCOM.EDU:owner-simula@VM.GMD.DE> Return-Path: <hio@CADCAM.KTH.SE> X-Mts: smtp Message-ID: <9404060918.AA23184@io> Date: Wed, 6 Apr 1994 11:07:46 +0200 Sender: The SIMULA Language List <SIMULA@UGA.BITNET> From: "Henry E. Islo" <hio@CADCAM.KTH.SE> Subject: Eiffel & SIMULA Comments: cc: Scott A Wells <swells@UTDALLAS.EDU> Lines: 29