🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.lang.modula2
Article #3053

Re: INC & DEC

#3053
From: Bill Seurer
Date: Mon, 20 Nov 1995 16:15
17 lines
1058 bytes
INC (someOrdinalVariable);
INC (someOrdinalVariable, someOrdinalValue);
DEC (someOrdinalVariable);
DEC (someOrdinalVariable, someOrdinalValue);

INC means "increment".  Without the optional second parameter it means
"increment by 1".  With the optional second parameter it means "increment
by that value".

DEC means "decrement" and works as above.

Note that the "variables" above can be any legal lvalue (array elements,
record members, etc.).
-- 

- Bill Seurer     ID Tools and Compiler Development      IBM Rochester, MN
  Business: BillSeurer@vnet.ibm.com               Home: BillSeurer@aol.com
Technical Details
Message-ID: <48q9j2$1974@locutus.rchland.ibm.com>
Path: arc1-ca.pugleaf.net!nordruth.rchland.ibm.com!seurer
References: <Pine.OSF.3.91.951118204131.19179A-100000@hubcap.clemson.edu>

Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!nordruth.rchland.ibm.com!seurer
From: seurer@nordruth.rchland.ibm.com (Bill Seurer)
Newsgroups: comp.lang.modula2
Subject: Re: INC & DEC
Date: 20 Nov 1995 16:15:30 GMT
Organization: IBM Rochester MN
Distribution: world
Message-ID: <48q9j2$1974@locutus.rchland.ibm.com>
References: <Pine.OSF.3.91.951118204131.19179A-100000@hubcap.clemson.edu>
Reply-To: BillSeurer@vnet.ibm.com
NNTP-Posting-Host: nordruth.rchland.ibm.com