On Mon, 3 Apr 2023 01:48:31 +0200, Bernd Oppolzer wrote:
>>
>C only supports call by value;
>if you want other things like call by reference or "call by content", as
>defined by COBOL,
>you have do simulate them by passing pointers by value explicitly
>(and in the case of call by content, by copying the parameters before
>passing their addresses).
> 
I'm starting to suspect that "call by content" is COBOL jargon.  Is there any
difference observable to the programmer between call by content and call by
value?  Is the "address" passed visible to the programmer?  (If a C programmer
simulates call by reference by passing a generated pointer it is visible to the
called routine and generating it is visible to the caller as "&".)

>C is a very small language - ...
>
Perhaps too small, because of the limitations of older computers, thus
the heed for "lint".  I've never used lint.  I believe most of its function
is replaced by function prototypes, which can be required by compiler
option.  And gcc even warns me about disagreement between format
replacement and operand type when it can.

-- 
gil

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

Reply via email to