[BLACKBOX] Reading of OUT parameters

From: [at]} <Rainer>
Date: Wed, 8 Apr 2009 18:33:33 +0200

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

Hi all,
I need urgent help for a silly problem:
is it possible to read the values of OUT parameters within the body
of a procedure; i.e. to use OUT parameters as local variables ?

The language report tells:
"Other output parameters must be considered as undefined prior to the
first assignment in the procedure"

So I suppose, after the first assignment I could use an OUT parameter
as local variable, that is, reading and writing works.

But the first example in the language report, (10.1 Formal
Parameters), procedure ReadInt, uses an explicit
local variable i to get its job done. At the end of the procedure
body the value of i is assigned to the OUT parameter x.

Is this just a style of programming or is this obligatory ?


Thanks a lot for any (instant) help.

Best regards,
Rainer


----
To unsubscribe, send a message with body "SIGNOFF BLACKBOX" to LISTSERV{([at]})nowhere.xy----boundary-LibPST-iamunique-1721964359_-_-
Content-type: application/rtf
Content-transfer-encoding: base64
Content-Disposition: attachment; filename="rtf-body.rtf"
e1xydGYxXGFuc2lcYW5zaWNwZzEyNTJcZnJvbXRleHQgXGRlZmYwe1xmb250dGJsDQp7XGYwXGZz
d2lzcyBBcmlhbDt9DQp7XGYxXGZtb2Rlcm4gQ291cmllciBOZXc7fQ0Ke1xmMlxmbmlsXGZjaGFy
c2V0MiBTeW1ib2w7fQ0Ke1xmM1xmbW9kZXJuXGZjaGFyc2V0MCBDb3VyaWVyIE5ldzt9fQ0Ke1xj
b2xvcnRibFxyZWQwXGdyZWVuMFxibHVlMDtccmVkMFxncmVlbjBcYmx1ZTI1NTt9DQpcdWMxXHBh
cmRccGxhaW5cZGVmdGFiMzYwIFxmMFxmczIwIEhpIGFsbCxccGFyDQpJIG5lZWQgdXJnZW50IGhl
bHAgZm9yIGEgc2lsbHkgcHJvYmxlbTpccGFyDQppcyBpdCBwb3NzaWJsZSB0byByZWFkIHRoZSB2
YWx1ZXMgb2YgT1VUIHBhcmFtZXRlcnMgd2l0aGluIHRoZSBib2R5ICBccGFyDQpvZiBhIHByb2Nl
ZHVyZTsgaS5lL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cg0KVG8gdW5zdWJzY3JpYmUsIHNlbmQgYSBtZXNzYWdlIHdpdGggYm9keSAiU0lHTk9GRiBCTEFD
S0JPWCIgdG8gTElTVFNFUlZATElTVFMuT0JFUk9OLkNIfX0AAAA/AA==
----boundary-LibPST-iamunique-1721964359_-_---
Received on Wed Apr 08 2009 - 18:33:33 UTC

This archive was generated by hypermail 2.3.0 : Thu Sep 26 2013 - 06:30:48 UTC