Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Posting-Version: version B 2.10.2 9/18/84; site udenva.UUCP Path: utzoo!watmath!clyde!burl!ulysses!allegra!mit-eddie!genrad!panda!talcott!harvard!seismo!hao!nbires!boulder!cisden!udenva!lspirkov From: lspirkov@udenva.UUCP (Goldilocks) Newsgroups: net.lang.c Subject: Re: C question Message-ID: <536@udenva.UUCP> Date: Thu, 18-Apr-85 22:50:55 EST Article-I.D.: udenva.536 Posted: Thu Apr 18 22:50:55 1985 Date-Received: Mon, 22-Apr-85 02:18:20 EST References: <9879@brl-tgr.ARPA> <> <515@udenva.UUCP> <> Reply-To: lspirkov@udenva.UUCP (Goldilocks) Distribution: net Organization: U of Denver Lines: 41 In article <> kjm@ut-ngp.UUCP (Ken Montgomery) writes: >[] > >From: lspirkov@udenva.UUCP (Goldilocks) >>In article <> jack@boring.UUCP (Jack Jansen) writes: >>> >>>procedure p(var i:integer):integer; > ^^^ >>>begin >>> p := i; >>> i := i+1; >>>end (* p *); >>> >> >>you obviously don't know your pascal! a function returns >>something. a procedure doesn't. >> >> Goldi > >The 'var' keyword has the effect that the value of 'i' is assigned >to the corresponding actual parameter in the calling routine at the >termination of the called routine. > >Ken Montgomery "Shredder-of-hapless-smurfs" I wasn't talking about the var parameters. i was talking about his syntax. try running that bit of code (with a main program & the rest of the skeleton) and see what you get... Goldi ps: what it should have been was: function p(var i:integer):integer; ^^^^^^^^ ... pps: i got mail from someone at harvard but i couldn't reply straight to him. so this is just for him: you're right. i don't know my modula-2. i never claimed i did. but he specifically said pascal.