On Mon, 3 Apr 2023 13:21:41 +0000, Peter Relson wrote:
>    ...
>Thus if you want something passed by-value, you "ask" for it by your 
>definition of the parameters in an "entry declare" that can be used both by 
>the caller and callee. 
>
That feels like a function prototype.

>If you want something identified as "input-only" you can do so. The compiler 
>flags writes into things that are input-only by reference. It is deemed OK to 
>write into something that is input-only by-value because it has no effect on 
>the argument.
>
I was once maintaining/enhancing a FOSS Pascal implementation for only
in-house use.  A user asked for the ability to prohibit or flag writing into
by-value (default) parameters.  I put the request at the "never" end of my
priorities.

-- 
Thanks,
gil

----------------------------------------------------------------------
For IBM-MAIN subscribe / signoff / archive access instructions,
send email to [email protected] with the message: INFO IBM-MAIN

Reply via email to