----boundary-LibPST-iamunique-873213988_-_-
Content-type: text/plain
I tend to use a naming convention to avoid such problems.
For example:
bPtr := aPtr;
y := x;
Marc
-----Original Message-----
From: Rex Couture [mailto:rex{([at]})nowhere.xy
Sent: Monday, June 19, 2006 3:16 PM
To: BlackBox Mailing List
Subject: [BlackBox] - Problem with pointer semantics
At 04:27 PM 6/19/2006, you wrote:
>What is exactly the problem?
>a and b contain pointers....
Suppose I give you just the following code. Just by looking at
it, you can't tell what the code does. I was just wondering if anyone
had a clever way of keeping track of that.
b:= a;
y:= x;
b[1]:= 5;
y[1]:= 5;
Rex Couture
--- BlackBox
--- send subject HELP or UNSUBSCRIBE to blackbox{([at]})nowhere.xy
--- BlackBox
--- send subject HELP or UNSUBSCRIBE to blackbox{([at]})nowhere.xy
----boundary-LibPST-iamunique-873213988_-_-
Content-type: application/rtf
Content-transfer-encoding: base64
Content-Disposition: attachment; filename="rtf-body.rtf"
e1xydGYxXGFuc2lcYW5zaWNwZzEyNTJcZnJvbXRleHQgXGRlZmYwe1xmb250dGJsDQp7XGYwXGZz
d2lzcyBBcmlhbDt9DQp7XGYxXGZtb2Rlcm4gQ291cmllciBOZXc7fQ0Ke1xmMlxmbmlsXGZjaGFy
c2V0MiBTeW1ib2w7fQ0Ke1xmM1xmbW9kZXJuXGZjaGFyc2V0MCBDb3VyaWVyIE5ldzt9fQ0Ke1xj
b2xvcnRibFxyZWQwXGdyZWVuMFxibHVlMDtccmVkMFxncmVlbjBcYmx1ZTI1NTt9DQpcdWMxXHBh
cmRccGxhaW5cZGVmdGFiMzYwIFxmMFxmczIwIEkgdGVuZCB0byB1c2UgYSBuYW1pbmcgY29udmVu
dGlvbiB0byBhdm9pZCBzdWNoIHByb2JsZW1zLlxwYXINCkZvciBleGFtcGxlOlxwYXINClxwYXIN
CiAgYlB0ciA6PSBhUHRyO1xwYXINCiAgeSA6PSB4O1xwYXINClxwYXINCk1hcmMgXHBhcg0KXHBh
cg0KLS0tLS1PcmlnaW5hbCBNZXN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