Re: [BLACKBOX] IN Parameters - Making the design more regular

From: Campbell, Robert (SELEX GALILEO, UK) <"Campbell,>
Date: Thu, 31 Jan 2008 08:34:20 -0000

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

Hi Chris and All,


MODULE Horrible;

VAR
  globalX : INTEGER;

PROCEDURE Q (localX : INTEGER);
  BEGIN
    globalX := 5;
  END Q;

PROCEDURE P (??? x : INTEGER);
  BEGIN
    Q (x)
(* What is x ? *)
  END P;

BEGIN
  globalX := 5;
  P (globalX)
END Horrible.



I think the value of x depends on whether ??? asks
for pass-by-value or pass-by-reference.

If so, to make the language predictable and repeatable,
the report would need to clearly state if ??? = IN implies
pass-by-value or pass-by-reference.

If some types are one, and some the other, does this increase
regularity?

Or maybe I have still lost the plot?

Robert


SELEX Sensors and Airborne Systems Limited
Registered Office: Sigma House, Christopher Martin Road, Basildon, Essex SS14 3EL
A company registered in England & Wales. Company no. 02426132
********************************************************************
This email and any attachments are confidential to the intended
recipient and may also be privileged. If you are not the intended
recipient please delete it from your system and notify the sender.
You should not copy it or use it for any purpose nor disclose or
distribute its contents to any other person.
********************************************************************


----
To unsubscribe, send a message with body "SIGNOFF BLACKBOX" to LISTSERV{([at]})nowhere.xy----boundary-LibPST-iamunique-1286235452_-_-
Content-type: application/rtf
Content-transfer-encoding: base64
Content-Disposition: attachment; filename="rtf-body.rtf"
e1xydGYxXGFuc2lcYW5zaWNwZzEyNTJcZnJvbXRleHQgXGRlZmYwe1xmb250dGJsDQp7XGYwXGZz
d2lzcyBBcmlhbDt9DQp7XGYxXGZtb2Rlcm4gQ291cmllciBOZXc7fQ0Ke1xmMlxmbmlsXGZjaGFy
c2V0MiBTeW1ib2w7fQ0Ke1xmM1xmbW9kZXJuXGZjaGFyc2V0MCBDb3VyaWVyIE5ldzt9fQ0Ke1xj
b2xvcnRibFxyZWQwXGdyZWVuMFxibHVlMDtccmVkMFxncmVlbjBcYmx1ZTI1NTt9DQpcdWMxXHBh
cmRccGxhaW5cZ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RVJWQExJU1RT
Lk9CRVJPTi5DSFxwYXINCn0
----boundary-LibPST-iamunique-1286235452_-_---
Received on Thu Jan 31 2008 - 09:34:20 UTC

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