Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Path: utzoo!linus!philabs!pwa-b!mmintl!franka From: franka@mmintl.UUCP (Frank Adams) Newsgroups: net.lang Subject: Re: Multiple assignments Message-ID: <1513@mmintl.UUCP> Date: Thu, 29-May-86 12:14:38 EDT Article-I.D.: mmintl.1513 Posted: Thu May 29 12:14:38 1986 Date-Received: Sun, 1-Jun-86 06:21:10 EDT References: <1455@mmintl.UUCP> <825@bentley.UUCP> <2788@utcsri.UUCP> Reply-To: franka@mmintl.UUCP (Frank Adams) Organization: Multimate International, E. Hartford, CT Lines: 21 In article <2788@utcsri.UUCP> greg@utcsri.UUCP (Gregory Smith) writes: >I think he means: > procedure proc( var a : integer ); > begin > a:= 0; > end; >begin > proc( cc $ dd ); { set cc and dd to 0 } > >I cannot agree with this - this is glorifying side-effects to a bizarre >extent. The implementation is not straightforward, either. Besides, what >if 'proc' looks at 'a' before using it? This would be used in a language where parameters are declared as in, out, or inout. The $ operator would only be legal for an out parameter. The implementation would be for the calling program to make the additional assignment. Frank Adams ihnp4!philabs!pwa-b!mmintl!franka Multimate International 52 Oakland Ave North E. Hartford, CT 06108