🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: bit.listserv.simula
Article #488

Pre/Post Conditioning for Simula

#488
From: Scott A Wells
Date: Tue, 05 Apr 1994 01:45
27 lines
2224 bytes
Hello, Simula programmers!!  Our OOP professor assigned groups to do 
reports on different object oriented languages.  Well, my topic is 
actually Eiffel :).  However, I am comparing it to Simula and other 
OOP languages in the following way, but am having problems finding 
information for the languages to this regard: Eiffel has the ability to 
set pre and post conditions for every object.  For example, suppose I 
create an object called Postal, which contains a pointer to a 
string of text (a letter being sent out), the weight of the letter, from 
and to where the letter is being sent, and the cost to send it to the 
destination.  With Eiffel, I can set a precondition that every object 
MUST have a weight of under 250lbs, and a postcondition that the cost of 
sending the letter will be no less than $2.50 (minimum rate).  I do this 
by using the keywords "require" and "ensure".  Is there anyway to 
implement pre/post conditions for objects/classes in Simula?  How 
would one do this if it is possible?  I greatly appreciate your help!  

Thanks,

Scott
--
/--------------------------------------------------------------------/
|  Scott Wells   |  University of Texas at Dallas                    |
|  Otherwise known to TF MUSHers as FRENZY!! The wakko in all of us. |
|  "Helloooooooo, Nurse!" -Wakko                                     |
|  E-MAIL Address: swells@utdallas.edu                               |
/--------------------------------------------------------------------/    
   
Technical Details
Message-ID: <2nqfs9$d7a@news.utdallas.edu>
Path: arc1-ca.pugleaf.net!gmd.de!newsserver.jvnc.net!yale.edu!yale!gumby!newsxfer.itd.umich.edu!gatech!howland.reston.ans.net!pipex!bnr.co.uk!corpgate!news.utdallas.edu!swells

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: 113dd9,f28e8e9dc5e4b7ec,start
X-Google-Attributes: gid113dd9,public
X-Google-ArrivalTime: 1994-04-04 18:45:45 PST
Path: arc1-ca.pugleaf.net!gmd.de!newsserver.jvnc.net!yale.edu!yale!gumby!newsxfer.itd.umich.edu!gatech!howland.reston.ans.net!pipex!bnr.co.uk!corpgate!news.utdallas.edu!swells
From: swells@utdallas.edu (Scott A Wells)
Newsgroups: bit.listserv.simula
Subject: Pre/Post Conditioning for Simula
Date: 5 Apr 1994 01:45:45 GMT
Organization: The University of Texas at Dallas
Lines: 27
Message-ID: <2nqfs9$d7a@news.utdallas.edu>
NNTP-Posting-Host: csclass.utdallas.edu
NNTP-Posting-User: swells
X-Newsreader: TIN [version 1.2 PL2]