From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on polar.synack.me X-Spam-Level: X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00 autolearn=ham autolearn_force=no version=3.4.4 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 103376,73f097f1e2686cf5 X-Google-Attributes: gid103376,public X-Google-ArrivalTime: 2001-09-07 04:42:43 PST Path: archiver1.google.com!newsfeed.google.com!newsfeed.stanford.edu!news.tele.dk!small.news.tele.dk!194.213.69.151!news.algonet.se!algonet!newsfeed1.bredband.com!bredband!uio.no!uninett.no!not-for-mail From: Reinert Korsnes Newsgroups: comp.lang.ada Subject: RE: Simplest way to protect a variable ? Date: Fri, 7 Sep 2001 13:35:58 +0200 Organization: UNINETT news service Message-ID: <9nabri$3i4$1@snipp.uninett.no> References: NNTP-Posting-Host: sthrkou.ffi.no Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7Bit X-Trace: snipp.uninett.no 999862962 3652 193.156.99.159 (7 Sep 2001 11:42:42 GMT) X-Complaints-To: news-abuse@uninett.no User-Agent: KNode/0.4 Xref: archiver1.google.com comp.lang.ada:12883 Date: 2001-09-07T13:35:58+02:00 List-Id: Wilhelm Spickermann wrote: > > On 07-Sep-01 Reinert Korsnes wrote: >> Hi, >> >> Let's say I initiate a "global" variable, A (for example an array), by >> calling a procedure (which may read data from a file). And I want to be >> sure that the content (value) of this variable is not changed by >> another procedure. The variable is "global" in the sense that it is >> available in many many other routines. >> >> I may have several co-programmers I do not trust :-) >> >> What is the simplest way to do this (in Ada) ? >> > > A : constant array ( ... ) of ... := file_reading_function (...); Obs, in this case I get compilation error message: "left hand side of assignment must be a variable" reinert > > Wilhelm > > -- http://home.chello.no/~rkorsnes