(unknown charset) [BLACKBOX] Order of calculating parameters

From: (unknown charset) Oleg N. Cher <"Oleg>
Date: Thu, 7 Feb 2013 17:41:57 +0200

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

Dear All,

Is the order of calculating parameters uniquely defined in standard of
Component Pascal (or Oberon/Oberon-2)? I've this situation.

PROCEDURE GetData (): INTEGER;
BEGIN (* The data is taken from array "arr", indexed by var "idx". Order
of taken data is one by one. *)
   INC(idx); RETURN arr[idx]
END GetData;

...
   (* Example code: *)
   PutTile(GetData(), GetData(), GetData()); (* x, y, tile number *)
...

If the order always left to right (as, in Turbo Pascal/Delphi, data must
be: x, y, tileNum.
If the order always right to left (just as, in some C compilers) data
must be: tileNum, y, x.

I understand of course, that things depends on used calling convention
model. But standards of Oberons must provide the own independent order,
as I think.


-- 
Oleg N. Cher
VEDAsoft Oberon Club
http://zx.oberon2.ru
----
To unsubscribe, send a message with body "SIGNOFF BLACKBOX" to LISTSERV{([at]})nowhere.xy----boundary-LibPST-iamunique-1221792728_-_-
Content-type: application/rtf
Content-transfer-encoding: base64
Content-Disposition: attachment; filename="rtf-body.rtf"
e1xydGYxXGFuc2lcYW5zaWNwZzEyNTJcZnJvbXRleHQgXGZiaWRpcyBcZGVmZjB7XGZvbnR0YmwN
CntcZjBcZnN3aXNzIEFyaWFsO30NCntcZjFcZm1vZGVybiBDb3VyaWVyIE5ldzt9DQp7XGYyXGZu
aWxcZmNoYXJzZXQyIFN5bWJvbDt9DQp7XGYzXGZtb2Rlcm5cZmNoYXJzZXQwIENvdXJpZXIgTmV3
O319DQp7XGNvbG9ydGJsXHJlZDBcZ3JlZW4wXGJsdWUwO1xyZWQwXGdyZWVuMFxibHVlMjU1O30N
Clx1YzFccGFyZFxwbGFpblxkZWZ0YWIzNjAgXGYwXGZzMjAgRGVhciBBbGwsXHBhcg0KXHBhcg0K
SXMgdGhlIG9yZGVyIG9mIGNhbGN1bGF0aW5nIHBhcmFtZXRlcnMgdW5pcXVlbHkgZGVm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gdGhpbmsuXHBhcg0KXHBhcg0KXHBhcg0KLS0gXHBhcg0KT2xlZyBOLiBDaGVyXHBhcg0KVkVE
QXNvZnQgT2Jlcm9uIENsdWJccGFyDQpodHRwOi8vengub2Jlcm9uMi5ydVxwYXINClxwYXINClxw
YXINCi0tLS1ccGFyDQpUbyB1bnN1YnNjcmliZSwgc2VuZCBhIG1lc3NhZ2Ugd2l0aCBib2R5ICJT
SUdOT0ZGIEJMQUNLQk9YIiB0byBMSVNUU0VSVkBMSVNUUy5PQkVST04uQ0h9fQAUYcAE
----boundary-LibPST-iamunique-1221792728_-_---
Received on Thu Feb 07 2013 - 16:41:57 UTC

This archive was generated by hypermail 2.3.0 : Thu Sep 26 2013 - 06:29:54 UTC