RE: [BLACKBOX] Variable initialization in BlackBox
----boundary-LibPST-iamunique-263396532_-_-
Content-type: text/plain
Hi Chris,
[...]
>
> If values are to be initialised then <undefined> would be a
> better initial value. Any subsequent access to a variable
> with an undefined value should then cause a system trap to
> identify it. As far as I remember CDC Pascal 6000 that
yes, absolutely. But that was a feature of the CDC linker,
which initialized data areas with <undefined> by default.
It was possible to explicitely request initialzing to <zero>.
I remember porting a Fortran IV program from an IBM mainframe
to a CDC which had after more than 10 years of usage on the IBM
the questionable statement
IF (I .EQ. O) ...
where the variable named with letter O was initialized to zero
and therefore did the intended comparison with zero.
CDC by default initialized with <undefined> and crashed upon
read access of the uninitialzed variable.
regards
Bernhard
----boundary-LibPST-iamunique-263396532_-_-
Content-type: application/rtf
Content-transfer-encoding: base64
Content-Disposition: attachment; filename="rtf-body.rtf"
e1xydGYxXGFuc2lcYW5zaWNwZzEyNTJcZnJvbXRleHQgXGRlZmYwe1xmb250dGJsDQp7XGYwXGZz
d2lzcyBBcmlhbDt9DQp7XGYxXGZtb2Rlcm4gQ291cmllciBOZXc7fQ0Ke1xmMlxmbmlsXGZjaGFy
c2V0MiBTeW1ib2w7fQ0Ke1xmM1xmbW9kZXJuXGZjaGFyc2V0MCBDb3VyaWVyIE5ldzt9fQ0Ke1xj
b2xvcnRibFxyZWQwXGdyZWVuMFxibHVlMDtccmVkMFxncmVlbjBcYmx1ZTI1NTt9DQpcdWMxXHBh
cmRccGxhaW5cZGVmdGFiMzYwIFxmMFxmczIwIEhpIENocmlzLFxwYXINClxwYXINClsuLi5dXHBh
cg0KPiBccGFyDQo+IElmIHZhbHVlcyBhcmUgdG8gYmUgaW5pdGlhbGlzZWQgdGhlbiA8dW5kZWZp
bmVkPiB3b3VsZCBiZSBhIFxwYXINCj4gYmV0dGVyIGluaXRpYWwgdmFsdWUuIEFueSBzdWJzZXF1
ZW50IGFjY2VzcyB0byBhIHZhcmlhYmxlIFxwYXINCj4gd2l0aCBhbiB1bmRlZmluZWQgdmFsdWU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