[BLACKBOX] AW: [BLACKBOX] Discussing IN is not 'Wasting time'

From: Zinn, Helmut <"Zinn,>
Date: Tue, 26 Feb 2008 13:08:45 +0100

----boundary-LibPST-iamunique-1655486542_-_-
Content-type: text/plain

Dear Chris,

> In both cases, the change made to the global value of a.i persists
after
> exit from the procedure.

> Unfortunately, IN parameters only make pointers marginally less risky
than
> they are already. Working with pointers is like working with reals.
The
> programmer needs to have a real good understanding of what they are
doing.

I'm sorry, I don't agree. Expansion of the language should be done very
carefully.

OM introduced IN for ARRAYs and RECORDs variable only. They define that
IN variables are constant and it is not allowing to change their
contents.

Now you would like to extend the use of IN for other variables including
pointers too.

Why should not keep the same rule? Why are not going to go the save way?
Everybody who is reading the program source expects that IN variables
are unchanged.

You can pass pointer variable without IN and you have the possibility to
change their contents there without changing the pointer itself as you
described above (backward compatibility).

Regards,

Helmut Zinn


----
To unsubscribe, send a message with body "SIGNOFF BLACKBOX" to LISTSERV{([at]})nowhere.xy----boundary-LibPST-iamunique-1655486542_-_-
Content-type: application/rtf
Content-transfer-encoding: base64
Content-Disposition: attachment; filename="rtf-body.rtf"
e1xydGYxXGFuc2lcYW5zaWNwZzEyNTJcZnJvbXRleHQgXGRlZmYwe1xmb250dGJsDQp7XGYwXGZz
d2lzcyBBcmlhbDt9DQp7XGYxXGZtb2Rlcm4gQ291cmllciBOZXc7fQ0Ke1xmMlxmbmlsXGZjaGFy
c2V0MiBTeW1ib2w7fQ0Ke1xmM1xmbW9kZXJuXGZjaGFyc2V0MCBDb3VyaWVyIE5ldzt9fQ0Ke1xj
b2xvcnRibFxyZWQwXGdyZWVuMFxibHVlMDtccmVkMFxncmVlbjBcYmx1ZTI1NTt9DQpcdWMxXHBh
cmRccGxhaW5cZGVmdGFiMzYwIFxmMFxmczIwIERlYXIgQ2hyaXMsXHBhcg0KXHBhcg0KPiBJbiBi
b3RoIGNhc2VzLCB0aGUgY2hhbmdlIG1hZGUgdG8gdGhlIGdsb2JhbCB2YWx1ZSBvZiBhLmk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yByZWFkaW5n
IHRoZSBwcm9ncmFtIHNvdXJjZSBleHBlY3RzIHRoYXQgSU4gdmFyaWFibGVzXHBhcg0KYXJlIHVu
Y2hhbmdlZC5ccGFyDQpccGFyDQpZb3UgY2FuIHBhc3MgcG9pbnRlciB2YXJpYWJsZSB3aXRob3V0
IElOIGFuZCB5b3UgaGF2ZSB0aGUgcG9zc2liaWxpdHkgdG9ccGFyDQpjaGFuZ2UgdGhlaXIgY29u
dGVudHMgdGhlcmUgd2l0aG91dCBjaGFuZ2luZyB0aGUgcG9pbnRlciBpdHNlbGYgYXMgeW91XHBh
cg0KZGVzY3JpYmVkIGFib3ZlIChiYWNrd2FyZCBjb21wYXRpYmlsaXR5KS5ccGFyDQpccGFyDQpS
ZWdhcmRzLFxwYXINClxwYXINCkhlbG11dCBaaW5uXHBhcg0KXHBhcg0KXHBhcg0KLS0tLVxwYXIN
ClRvIHVuc3Vic2NyaWJlLCBzZW5kIGEgbWVzc2FnZSB3aXRoIGJvZHkgIlNJR05PRkYgQkxBQ0tC
T1giIHRvIExJU1RTRVJWQExJU1RTLk9CRVJPTi5DSH19AFJPVVA
----boundary-LibPST-iamunique-1655486542_-_---
Received on Tue Feb 26 2008 - 13:08:45 UTC

This archive was generated by hypermail 2.3.0 : Thu Sep 26 2013 - 06:31:00 UTC