home *** CD-ROM | disk | FTP | other *** search
- Newsgroups: comp.lang.modula3
- Path: sparky!uunet!sun-barr!decwrl!deccrl!news.crl.dec.com!pa.dec.com!src.dec.com!gnelson
- From: gnelson
- Subject: Re: READONLY parameters; what are they really?
- In-Reply-To: Message of 26 Aug 92 11:37:56 GMT
- from laverman@cs.rug.nl (Bert Laverman)
- <1992Aug26.113756.8590@cs.rug.nl>
- To: m3
- Message-ID: <9208282326.AA00986@nemesia.pa.dec.com>
- Cc: laverman@cs.rug.nl (Bert Laverman)
- Date: Fri, 28 Aug 92 16:26:56 -0700
- X-Mts: smtp
- Lines: 8
-
-
- If a formal parameter is READONLY and the corresponding actual
- is not a designator, the recommended (indeed, almost inevitable)
- implementation is to record the value in an anonymous temporary and
- to pass the address of the temporary. READONLY should be used for
- record and array arguments where passing them by value would be
- costly.
-
-