🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.lang.modula2
Article #329

Re: Overloading Operators: Extension to Language

#329
From: Chuck Lins
Date: Wed, 04 Oct 1989 23:30
19 lines
1172 bytes
>However, I think he's correct not to allow functions to return
>structured values.  In fact, I think he should modify his
>standard parameter passing mechanism to something like:
>
>	PROCEDURE zap(VAR a, b, c: aType;
>		      CON x, y, z: bType);
>

One can simply return records and arrays by specifying them as VAR parameters.
If one really wants to specify usage of a parameter you might as well go to
Ada's paramater mode specification of either: in, out, or inout.

-- 
Chuck Lins               | "Exit left to funway."
Apple Computer, Inc.     | Internet: lins@apple.com
20525 Mariani Avenue     | AppleLink: LINS
Mail Stop 41-K           | 
Cupertino, CA 95014      | "Self-proclaimed Object Oberon Evangelist"
I speak for myself and no one else.
Technical Details
Message-ID: <35285@apple.Apple.COM>
Path: arc1-ca.pugleaf.net!utzoo!utgpu!jarvis.csri.toronto.edu!mailrus!tut.cis.ohio-state.edu!gem.mps.ohio-state.edu!apple!lins
References: <1922@brazos.Rice.edu>

Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!utzoo!utgpu!jarvis.csri.toronto.edu!mailrus!tut.cis.ohio-state.edu!gem.mps.ohio-state.edu!apple!lins
From: lins@Apple.COM (Chuck Lins)
Newsgroups: comp.lang.modula2
Subject: Re:  Overloading Operators: Extension to Language
Message-ID: <35285@apple.Apple.COM>
Date: 4 Oct 89 23:30:18 GMT
References: <1922@brazos.Rice.edu>
Organization: Apple Computer Inc, Cupertino, CA
Lines: 19