Article View: comp.lang.modula2
Article #3052Re: INC & DEC
From: Jaroslav Bujas
Date: Sun, 19 Nov 1995 17:40
Date: Sun, 19 Nov 1995 17:40
51 lines
1943 bytes
1943 bytes
Eric Andry (eandry@hubcap.clemson.edu) wrote: : I'm trying to converta Modula-2 program to Ada. I don't have a reference : book available to me for some of the commands in Modula-2. What is INC : and DEC? From the program I'm reading it looks like the increment and : decrement. However, one of the lines says: : INC ( SumOfWaits, (Time - PassEntryTime) ) SumOfWaits will be increased by the difference between Time and PassEntryTime. SumOfWaits := SumOfWaits + (Time - PassEntryTime) : where all of these variables : are Cardinal variables. Some other lines say INC (Time) Time will be increased by 1 Time := Time + 1 : and another says DEC (ServiceTimeLeft). ServiceTimeLeft will be decreased by 1 ServiceTimeLift := ServiceTimeLef - 1 : What do they mean, or can someone point me to a Web Page with this : information. : \\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\ : \| Eric L. Andry | : \| | : \| Computer Engineering | : \| | : \| Clemson University | : \| Clemson, South Carolina | : \| | : \| mailto: eandry@hubcap.clemson.edu | : \| eandry@eng.clemson.edu | : \| eandry@cs.clemson.edu | : \| | : \| http://www.clemson.edu/~eandry/ | : \| | : ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
Technical Details
Message-ID:
<48nq78$acd@steel.interlog.com>Path:
arc1-ca.pugleaf.net!news.interlog.com!gold!jerryReferences:
<Pine.OSF.3.91.951118204131.19179A-100000@hubcap.clemson.edu>Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!news.interlog.com!gold!jerry From: jerry@gold.interlog.com (Jaroslav Bujas) Newsgroups: comp.lang.modula2 Subject: Re: INC & DEC Date: 19 Nov 1995 17:40:56 GMT Organization: InterLog Internet Services Message-ID: <48nq78$acd@steel.interlog.com> References: <Pine.OSF.3.91.951118204131.19179A-100000@hubcap.clemson.edu> NNTP-Posting-Host: gold.interlog.com X-Newsreader: TIN [version 1.2 PL2]