home *** CD-ROM | disk | FTP | other *** search
- Newsgroups: comp.lang.modula2
- 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
- From: borchert@titania.mathematik.uni-ulm.de (Andreas Borchert)
- Subject: Re: Oberon vs Modula-2 vs Modula-3
- Message-ID: <1992Nov23.063728.4645@informatik.uni-ulm.de>
- Sender: usenet@informatik.uni-ulm.de (Name for nntp-posting)
- Nntp-Posting-Host: titania.mathematik.uni-ulm.de
- Organization: University of Ulm, SAI
- References: <1992Nov19.140913.18702@informatik.uni-ulm.de> <1992Nov22.185530.26542@Urmel.Informatik.RWTH-Aachen.DE>
- Date: Mon, 23 Nov 92 06:37:28 GMT
- Lines: 25
-
- In article <1992Nov22.185530.26542@Urmel.Informatik.RWTH-Aachen.DE>, pk@rwthi3.informatik.rwth-aachen.de (Peter Klein) writes:
- > In article 18702@informatik.uni-ulm.de, borchert@titania.mathematik.uni-ulm.de (Andreas Borchert) writes:
- >
- > >Readonly parameters don't protect from surprises. E.g. if we have
- > >the above mentioned
- > >
- > > PROCEDURE p(a: Type; READONLY b: Type);
-
- OOPS, I forgot to insert VAR before "a", i.e. I was speaking about
-
- PROCEDURE p(VAR a: Type; READONLY b: Type);
- > > BEGIN
- > > a[1] := ....;
- > > (* has b[1] been changed now? *)
- > > END;
- > >
- > >where p is called as p(x, x). And all other cases are still not solved
- > >where formerly VAR-parameters have been threatened by other procedures
- > >in a non-obvious way.
-
- --
- _______________________________________________________________________________
-
- Andreas Borchert, University of Ulm, SAI, D-W-7900 Ulm, Germany
- Internet: borchert@mathematik.uni-ulm.de
-