home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #27 / NN_1992_27.iso / spool / comp / lang / modula2 / 1435 < prev    next >
Encoding:
Text File  |  1992-11-22  |  1.6 KB  |  38 lines

  1. Newsgroups: comp.lang.modula2
  2. Path: sparky!uunet!europa.asd.contel.com!darwin.sura.net!zaphod.mps.ohio-state.edu!sol.ctr.columbia.edu!ira.uka.de!math.fu-berlin.de!news.belwue.de!news.uni-ulm.de!theorie!titania.mathematik.uni-ulm.de!borchert
  3. From: borchert@titania.mathematik.uni-ulm.de (Andreas Borchert)
  4. Subject: Re: Oberon vs Modula-2 vs Modula-3
  5. Message-ID: <1992Nov23.063728.4645@informatik.uni-ulm.de>
  6. Sender: usenet@informatik.uni-ulm.de (Name for nntp-posting)
  7. Nntp-Posting-Host: titania.mathematik.uni-ulm.de
  8. Organization: University of Ulm, SAI
  9. References: <1992Nov19.140913.18702@informatik.uni-ulm.de> <1992Nov22.185530.26542@Urmel.Informatik.RWTH-Aachen.DE>
  10. Date: Mon, 23 Nov 92 06:37:28 GMT
  11. Lines: 25
  12.  
  13. In article <1992Nov22.185530.26542@Urmel.Informatik.RWTH-Aachen.DE>, pk@rwthi3.informatik.rwth-aachen.de (Peter Klein) writes:
  14. > In article 18702@informatik.uni-ulm.de, borchert@titania.mathematik.uni-ulm.de (Andreas Borchert) writes:
  15. > >Readonly parameters don't protect from surprises. E.g. if we have
  16. > >the above mentioned
  17. > >
  18. > >   PROCEDURE p(a: Type; READONLY b: Type);
  19.  
  20. OOPS, I forgot to insert VAR before "a", i.e. I was speaking about
  21.  
  22.       PROCEDURE p(VAR a: Type; READONLY b: Type);
  23. > >   BEGIN
  24. > >      a[1] := ....;
  25. > >      (* has b[1] been changed now? *)
  26. > >   END;
  27. > >
  28. > >where p is called as p(x, x). And all other cases are still not solved
  29. > >where formerly VAR-parameters have been threatened by other procedures
  30. > >in a non-obvious way.
  31.  
  32. -- 
  33. _______________________________________________________________________________
  34.  
  35. Andreas Borchert, University of Ulm, SAI, D-W-7900 Ulm, Germany
  36. Internet: borchert@mathematik.uni-ulm.de
  37.