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

From: Campbell, Robert (SELEX GALILEO, UK) <"Campbell,>
Date: Thu, 31 Jan 2008 12:32:59 -0000

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

 
Sorry, another typing error.

Of course I meant the two lines "globalX := 5"
to be different values such as 5 & 3.


>> -----Original Message-----
>> From: Campbell, Robert (SELEX GALILEO, UK)
>>
>> 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-1724686495_-_-
Content-type: application/rtf
Content-transfer-encoding: base64
Content-Disposition: attachment; filename="rtf-body.rtf"
e1xydGYxXGFuc2lcYW5zaWNwZzEyNTJcZnJvbXRleHQgXGRlZmYwe1xmb250dGJsDQp7XGYwXGZz
d2lzcyBBcmlhbDt9DQp7XGYxXGZtb2Rlcm4gQ291cmllciBOZXc7fQ0Ke1xmMlxmbmlsX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CioqKioqKioqKioqKioqKioqKioqKioq
KioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqXHBhcg0KVGhpcyBl
bWFpbCBhbmQgYW55IGF0dGFjaG1lbnRzIGFyZSBjb25maWRlbnRpYWwgdG8gdGhlIGludGVuZGVk
XHBhcg0KcmVjaXBpZW50IGFuZCBtYXkgYWxzbyBiZSBwcml2aWxlZ2VkLiBJZiB5b3UgYXJlIG5v
dCB0aGUgaW50ZW5kZWRccGFyDQpyZWNpcGllbnQgcGxlYXNlIGRlbGV0ZSBpdCBmcm9tIHlvdXIg
c3lzdGVtIGFuZCBub3RpZnkgdGhlIHNlbmRlci5ccGFyDQpZb3Ugc2hvdWxkIG5vdCBjb3B5IGl0
IG9yIHVzZSBpdCBmb3IgYW55IHB1cnBvc2Ugbm9yIGRpc2Nsb3NlIG9yXHBhcg0KZGlzdHJpYnV0
ZSBpdHMgY29udGVudHMgdG8gYW55IG90aGVyIHBlcnNvbi5ccGFyDQoqKioqKioqKioqKioqKioq
KioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKlxwYXIN
ClxwYXINClxwYXINCi0tLS1ccGFyDQpUbyB1bnN1YnNjcmliZSwgc2VuZCBhIG1lc3NhZ2Ugd2l0
aCBib2R5ICJTSUdOT0ZGIEJMQUNLQk9YIiB0byBMSVNUU0VSVkBMSVNUUy5PQkVST04uQ0h9fQBh
c3Np
----boundary-LibPST-iamunique-1724686495_-_---
Received on Thu Jan 31 2008 - 13:32:59 UTC

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