Path: utzoo!attcan!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!usc!ucsd!ucbvax!hplabs!hpl-opus!hpspdra!stevewi From: stevewi@hpspdra.HP.COM (Steve Witten) Newsgroups: comp.sys.mac.programmer Subject: Re: Pascal deficiency? Message-ID: <13650001@hpspdra.HP.COM> Date: 17 Dec 90 19:03:58 GMT References: Organization: HP Stanford Park - Palo Alto, CA Lines: 20 You can use the 'succ' and 'pred' operators/functions in Pascal to accomplish the same function as '++' and '--'. So: integer i,j,k; ... j := succ(i); { same as 'j=i++' } k := pred(i); { same as 'k=i--' } ... However, you have to remember that '++/--' are positional as well. You cannot recreate this behavior. You also cannot recreate the behavior of 'x++' without an assignment in Pascal. =============================================================================== Steve Witten stevewi%hpspdra@hplabs.hp.com Intelligent Networks Operation ...!hplabs!hpspdra!stevewi Hewlett-Packard Co. stevewi@hpspdra.spd.hp.com