Re: [BLACKBOX] Matrix slices - syntax
----boundary-LibPST-iamunique-1825502019_-_-
Content-type: text/plain
Rex,
Strickly speaking I agree with you.
Name wise "ARRAY OF REAL" and "ARRAY 3 OF REAL" are not the same.
However, without "open" arrays one could never write a general procedure for
one can not allocate an open (unspecified length) array. Hence only specific
arrays types could be passed as arguments which means one would have to
write F3 for arrays of length 3 and F4 for arrays of length 4, etc. So I have
just convinced myself that open arrays are very necessary and must violate the
strict name equivalence rule.
-Doug
Rex Couture wrote:
This discussion is a good reminder of the advantages and disadvantages of name equivalence as opposed to structural equivalence.
But I have to wonder why calling Q works, since the types are not matched. The actual parameter is of type M3Desc, but Q requires type VDesc.
PROCEDURE Q (IN v: VDesc); BEGIN END Q;
VAR m3: M3Desc;
Q(m3[0]); (* works *)
--Rex Couture
----
To unsubscribe, send a message with body "SIGNOFF BLACKBOX" to LISTSERV{([at]})nowhere.xy
---- To unsubscribe, send a message with body "SIGNOFF BLACKBOX" to LISTSERV{([at]})nowhere.xy
----boundary-LibPST-iamunique-1825502019_-_-
Content-type: application/rtf
Content-transfer-encoding: base64
Content-Disposition: attachment; filename="rtf-body.rtf"
e1xydGYxXGFuc2lcYW5zaWNwZzEyNTJcZnJvbWh0bWwxIFxkZWZmMHtcZm9udHRibA0Ke1xmMFxm
c3dpc3NcZmNoYXJzZXQwIEFyaWFsO30NCntcZjFcZm1vZGVybiBDb3VyaWVyIE5ldzt9DQp7XGYy
XGZuaWxcZmNoYXJzZXQyIFN5bWJvbDt9DQp7XGYzXGZtb2Rlcm5cZmNoYXJzZXQwIENvdXJpZXIg
TmV3O319DQp7XGNvbG9ydGJsXHJlZDBcZ3JlZW4wXGJsdWUwO1xyZWQwXGdyZWVuMFxibHVlMjU1
O30NClx1YzFccGFyZFxwbGFpblxkZWZ0YWIzNjAgXGYwXGZzMjQgDQp7XCpcaHRtbHRhZzI0MyA8
IURPQ1RZUEUgaHRtbCBQVUJMSUMgIi0vL1czQy8vRFREIEhUTUwgNC4wMSBUc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