Article View: bit.listserv.simula
Article #293value change
From: Frans Panken
Date: Tue, 25 Jun 1996 00:00
Date: Tue, 25 Jun 1996 00:00
29 lines
1737 bytes
1737 bytes
Can anyone give me any comments on the following:
Suppose a procedure activates a PROCESS CLASS with a local ARRAY "A"
as parameter. When after activation of this process class the array
"A" is changed within the procedure, the local array in the class
that was just activated changes as well !
This does not occur in the case of reals, integers, booleans etc.
So, if a procedure activates a number (say N) of classes and passes
arrays to these classes, the values in the local arrays of classes 1
.. N-1 change into the values given to the class which was activated
last (i.e. class number N).
This observation worries me a bit; are there any other declarations
that will change in this manner ??
Frans
__o __o
_,\<,_ _,\<,_
(_)/ (_) (_)/ (_)
---------------------------------------------------------------------
Frans Panken UUCP: uunet!cs.kun.nl!fransp
University of Nijmegen, ,==. tel: +31 24 3652450
Computing Science Institute, / @ | e-mail: fransp@cs.kun.nl
Room A-4016,Toernooiveld 1, /_ < fax: +31 24 3553450
NL, 6525 ED Nijmegen =" `g' talk: fransp@eos.cs.kun.nl
---------------------------------------------------------------------
Technical Details
Message-ID:
<199606250925.LAA16754@sisyphus.cs.kun.nl>Path:
arc1-ca.pugleaf.net!unknown!not-for-mailShow Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 113dd9,1e1335de2485d616,start X-Google-Attributes: gid113dd9,public From: Frans Panken <fransp@CS.KUN.NL> Subject: value change Date: 1996/06/25 Message-ID: <199606250925.LAA16754@sisyphus.cs.kun.nl> X-Deja-AN: 162019370 sender: The SIMULA Language List <SIMULA@uga.cc.uga.edu> comments: Gated by NETNEWS@AUVM.AMERICAN.EDU newsgroups: bit.listserv.simula