Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Posting-Version: version B 2.10.2 9/18/84; site gitpyr.UUCP Path: utzoo!watmath!clyde!bonnie!akgua!gatech!gitpyr!robert From: robert@gitpyr.UUCP (Robert Viduya) Newsgroups: net.lang.c Subject: Re: C question Message-ID: <327@gitpyr.UUCP> Date: Fri, 19-Apr-85 10:46:00 EST Article-I.D.: gitpyr.327 Posted: Fri Apr 19 10:46:00 1985 Date-Received: Sat, 20-Apr-85 07:04:18 EST References: <1617@ut-ngp.UUCP> <259@moncol.UUCP> Organization: Georgia Tech, Atlanta Lines: 24 > > I don't have the original article handy, but it almost looks like someone > was trying to perform the illegal: > > function p(var i:integer):integer; > > which would be an attempt at declaring a function which returns two values. > I pray that somewhere there isn't a compiler which would accept that. > (Ooh, ick!) > Wait a minute... Pascal allows you to have var parameters in functions. There is nothing illegal about the declaration whatsoever. All the Pascal compilers I've used accept this. And what's wrong with functions modifying their parameters? robert -- Robert Viduya Georgia Institute of Technology ...!{akgua,allegra,amd,hplabs,ihnp4,masscomp,ut-ngp}!gatech!gitpyr!robert ...!{rlgvax,sb1,uf-cgrl,unmvax,ut-sally}!gatech!gitpyr!robert