----boundary-LibPST-iamunique-1229915491_-_-
Content-type: text/plain
> MODULE PrivTest;
>
> PROCEDURE ^ Test (VAR ident: ARRAY 10 OF INTEGER);
>
> PROCEDURE Test (VAR ident: ARRAY 10 OF INTEGER);
> BEGIN
> END Test;
>
> END PrivTest.
In my opinion not allowing formal parameters with fixed length anonymous
types is quite reasonable - and is clearly stated in the language report.
To the compiler the VARs ident and ident are of different type. Procedure
Test will not accept *any* actual parameter of what type ever, the
programmer has to provide an explicitly compatible type, either by naming
it or - in the case of a formal parameter like above - by using an open
pointer type which is compatible with any array of its base type.
Regards
Harro
--- BlackBox
--- send subject HELP or UNSUBSCRIBE to blackbox{([at]})nowhere.xy
----boundary-LibPST-iamunique-1229915491_-_-
Content-type: application/rtf
Content-transfer-encoding: base64
Content-Disposition: attachment; filename="rtf-body.rtf"
e1xydGYxXGFuc2lcYW5zaWNwZzEyNTJcZnJvbXRleHQgXGRlZmYwe1xmb250dGJsDQp7XGYwXGZz
d2lzcyBBcmlhbDt9DQp7XGYxXGZtb2Rlcm4gQ291cmllciBOZXc7fQ0Ke1xmMlxmbmlsXGZjaGFy
c2V0MiBTeW1ib2w7fQ0Ke1xmM1xmbW9kZXJuXGZjaGFyc2V0MCBDb3VyaWVyIE5ldzt9fQ0Ke1xj
b2xvcnRibFxyZWQwXGdyZWVuMFxibHVlMDtccmVkMFxncmVlbjBcYmx1ZTI1NTt9DQpcdWMxXHBh
cmRccGxhaW5cZGVmdGFiMzYwIFxmMFxmczIwID4gTU9EVUxFIFByaXZUZXN0O1xwYXINCj5ccGFy
DQo+IFBST0NFRFVSRSBeIFRlc3QgKFZBUiBpZGVudDogQVJSQVkgMTAgT0YgSU5URUdFUik7XHBh
cg0KPlxwYXINCj4gICBQUk9DRURVUkUgVGVzdCAoVkFSIGlkZW50OiBBUlJBWSAxMCBPRiBJTlRF
R0VSKTtccGFyDQo+ICAgQkVHSU5ccGFyDQo+ICAgRU5EIFRlc3Q7XHBhcg0KPlxwYXINCj4gRU5E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