- Why does this compile?

From: [at]} <Rex>
Date: Tue, 09 Oct 2007 10:13:42 -0500

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

At 01:42 AM 10/9/2007, Bernhard Treutwein wrote:
>it compiles for the same reason why the following
>compiles:
>
>PROCEDURE Crash*;
>VAR i: INTEGER; a: ARRAY 4 OF REAL;
>BEGIN
> i:= -800;
> a[i]:= i
>END Crash;


        Yes, thanks. It just came as a surprise that it does not even attempt to check array bounds at compile time.

Rex Couture

--- BlackBox
--- send subject HELP or UNSUBSCRIBE to blackbox{([at]})nowhere.xy


----boundary-LibPST-iamunique-513540146_-_-
Content-type: application/rtf
Content-transfer-encoding: base64
Content-Disposition: attachment; filename="rtf-body.rtf"

e1xydGYxXGFuc2lcYW5zaWNwZzEyNTJcZnJvbXRleHQgXGRlZmYwe1xmb250dGJsDQp7XGYwXGZz
d2lzcyBBcmlhbDt9DQp7XGYxXGZtb2Rlcm4gQ291cmllciBOZXc7fQ0Ke1xmMlxmbmlsXGZjaGFy
c2V0MiBTeW1ib2w7fQ0Ke1xmM1xmbW9kZXJuXGZjaGFyc2V0MCBDb3VyaWVyIE5ldzt9fQ0Ke1xj
b2xvcnRibFxyZWQwXGdyZWVuMFxibHVlMDtccmVkMFxncmVlbjBcYmx1ZTI1NTt9DQpcdWMxXHBh
cmRccGxhaW5cZGVmdGFiMzYwIFxmMFxmczIwIEF0IDAxOjQyIEFNIDEwLzkvMjAwNywgQmVybmhh
cmQgVHJldXR3ZWluIHdyb3RlOlxwYXINCj5pdCBjb21waWxlcyBmb3IgdGhlIHNhbWUgcmVhc29u
IHdoeSB0aGUgZm9sbG93aW5nXHBhcg0KPmNvbXBpbGVzOlxwYXINCj5ccGFyDQo+UFJPQ0VEVVJF
IENyYXNoKjtccGFyDQo+VkFSIGk6IElOVEVHRVI7IGE6IEFSUkFZIDQgT0YgUkVBTDsgXHBhcg0K
PkJFR0lOXHBhcg0KPiAgaTo9IC04MDA7XHBhcg0KPiAgYVtpXTo9IGkgXHBhcg0KPkVORCBDcmFz
aDtccGFyDQpccGFyDQpccGFyDQogICAgICAgIFllcywgdGhhbmtzLiAgSXQganVzdCBjYW1lIGFz
IGEgc3VycHJpc2UgdGhhdCBpdCBkb2VzIG5vdCBldmVuIGF0dGVtcHQgdG8gY2hlY2sgYXJyYXkg
Ym91bmRzIGF0IGNvbXBpbGUgdGltZS5ccGFyDQpccGFyDQpSZXggQ291dHVyZVxwYXINClxwYXIN
Ci0tLSBCbGFja0JveFxwYXINCi0tLSBzZW5kIHN1YmplY3QgSEVMUCBvciBVTlNVQlNDUklCRSB0
byBibGFja2JveEBvYmVyb24uY2h9fQAhAAAA5J0UYfho


----boundary-LibPST-iamunique-513540146_-_---
Received on Tue Oct 09 2007 - 17:13:42 UTC

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