Re: [BLACKBOX] Variable IN parameters !

From: [at]} <>
Date: Thu, 9 Aug 2012 22:48:25 +0800

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

Robert,

if you want this kind error,

>>


Would you want the same to apply to receivers? i.e. would you want the
following to result in an error?


PROCEDURE (VAR box : Box) Pepper, NEW;
BEGIN
END Pepper;

PROCEDURE (IN box : Box) Salt, NEW;
BEGIN
box.Pepper
END Salt;

Chris
>>


try this patch:

DevCPB.PrepCall
....
  IF x.obj.mode = TProc THEN
    IF fpar.typ.form = Pointer THEN
      IF x.left.class = Nderef THEN x.left := x.left.left (*undo DeRef v.m(); *)
      ELSE err(71)
      END;
   >>>add
     ELSIF (fpar.vis # inPar)THEN
       IF x.left.readonly THEN DevCPM.Mark(76, x.left.obj.txtpos); END;
    <<<
    END;
    fpar := fpar.link
  END
...


regards,

luowy


----
To unsubscribe, send a message with body "SIGNOFF BLACKBOX" to LISTSERV{([at]})nowhere.xy----boundary-LibPST-iamunique-1844934695_-_-
Content-type: application/rtf
Content-transfer-encoding: base64
Content-Disposition: attachment; filename="rtf-body.rtf"
e1xydGYxXGFuc2lcYW5zaWNwZzEyNTJcZnJvbXRleHQgXGZiaWRpcyBcZGVmZjB7XGZvbnR0YmwN
CntcZjBcZnN3aXNzIEFyaWFsO30NCntcZjFcZm1vZGVybiBDb3VyaWVyIE5ldzt9DQp7XGYyXGZu
aWxcZmNoYXJzZXQyIFN5bWJvbDt9DQp7XGYzXGZtb2Rlcm5cZmNoYXJzZXQwIENvdXJpZXIgTmV3
O319DQp7XGNvbG9ydGJsXHJlZDBcZ3JlZW4wXGJsdWUwO1xyZWQwXGdyZWVuMFxibHVlMjU1O30N
Clx1YzFccGFyZFxwbGFpblxkZWZ0YWIzNjAgXGYwXGZzMjAgUm9iZXJ0LFxwYXINClxwYXINCmlm
IHlvdSB3YW50IHRoaXMga2luZCBlcnJvcixccGFyDQpccGFyDQo+PlxwYXINClxwYXINCldvdWxk
IHlvdSB3YW50IHRoZ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wYXINClxwYXINCi0tLS1ccGFyDQpUbyB1bnN1YnNjcmli
ZSwgc2VuZCBhIG1lc3NhZ2Ugd2l0aCBib2R5ICJTSUdOT0ZGIEJMQUNLQk9YIiB0byBMSVNUU0VS
VkBMSVNUUy5PQkVST04uQ0hccGFyDQp9
----boundary-LibPST-iamunique-1844934695_-_---
Received on Thu Aug 09 2012 - 16:48:25 UTC

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