home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #19 / NN_1992_19.iso / spool / comp / lang / modula3 / 890 < prev    next >
Encoding:
Text File  |  1992-08-29  |  817 b   |  23 lines

  1. Newsgroups: comp.lang.modula3
  2. Path: sparky!uunet!sun-barr!decwrl!deccrl!news.crl.dec.com!pa.dec.com!src.dec.com!gnelson
  3. From: gnelson
  4. Subject: Re:  READONLY parameters; what are they really?
  5. In-Reply-To: Message of  26 Aug 92 11:37:56 GMT
  6.     from  laverman@cs.rug.nl (Bert Laverman)
  7.      <1992Aug26.113756.8590@cs.rug.nl>
  8. To: m3
  9. Message-ID: <9208282326.AA00986@nemesia.pa.dec.com>
  10. Cc: laverman@cs.rug.nl (Bert Laverman)
  11. Date: Fri, 28 Aug 92 16:26:56 -0700
  12. X-Mts: smtp
  13. Lines: 8
  14.  
  15.  
  16. If a formal parameter is READONLY and the corresponding actual 
  17. is not a designator, the recommended (indeed, almost inevitable)
  18. implementation is to record the value in an anonymous temporary and
  19. to pass the address of the temporary.  READONLY should be used for
  20. record and array arguments where passing them by value would be
  21. costly.
  22.  
  23.