----boundary-LibPST-iamunique-1768349766_-_-
Content-type: text/plain
And another question: even if the index's range in RealBug was correct,
would it be possible to call RealBug?
BB compiler doesn't let argument's type ARRAY 4 OF REAL (incompatible
assignment).
Alexey Cheremkhin
> This is too simple. What am I missing? Why does it compile when the compiler should be able to see the errors?
>
> Rex Couture
>
> ===============
> MODULE TestBug;
>
> PROCEDURE Open* (dev: ARRAY 256 OF SHORTCHAR;
> VAR devConf: ARRAY 256 OF SHORTCHAR);
> VAR i: INTEGER;
> BEGIN
> FOR i:= -1000000 TO 1000000 DO (* Why does this compile? *)
> devConf[i]:= dev[i] END
> END Open;
>
> PROCEDURE RealBug*( a: ARRAY 4 OF REAL; VAR sum: REAL);
> VAR i: INTEGER;
> BEGIN
> FOR i:= -800 TO 1000 DO (* Why does this compile? *)
> a[i]:= i END;
> END RealBug;
>
> END TestBug.
>
> --- 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-1768349766_-_-
Content-type: application/rtf
Content-transfer-encoding: base64
Content-Disposition: attachment; filename="rtf-body.rtf"
e1xydGYxXGFuc2lcYW5zaWNwZzEyNTJcZnJvbXRleHQgXGRlZmYwe1xmb250dGJsDQp7XGYwXGZz
d2lzcyBBcmlhbDt9DQp7XGYxXGZtb2Rlcm4gQ291cmllciBOZXc7fQ0Ke1xmMlxmbmlsXGZjaGFy
c2V0MiBTeW1ib2w7fQ0Ke1xmM1xmbW9kZXJuXGZjaGFyc2V0MCBDb3VyaWVyIE5ldzt9fQ0Ke1xj
b2xvcnRibFxyZWQwXGdyZWVuMFxibHVlMDtccmVkMFxncmVlbjBcYmx1ZTI1NTt9DQpcdWMxXHBh
cmRccGxhaW5cZGVmdGFiMzYwIFxmMFxmczIwIEFuZCBhbm90aGVyIHF1ZXN0aW9uOiBldmVuIGlm
IHRoZSBpbmRleCdzIHJhbmdlIGluIF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