Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.std.c > #6577

Re: Function calls

From Kaz Kylheku <864-117-4973@kylheku.com>
Newsgroups comp.std.c
Subject Re: Function calls
Date 2023-10-04 18:38 +0000
Organization A noiseless patient Spider
Message-ID <20231004111520.709@kylheku.com> (permalink)
References <calls-20231004163135@ram.dialup.fu-berlin.de>

Show all headers | View raw


On 2023-10-04, Stefan Ram <ram@zedat.fu-berlin.de> wrote:
>   A recent draft of the C specification says about "return":
>
>|A return statement terminates execution of the current
>|function and returns control to its caller.
>
>   . There's also a section "Function calls" in a recent draft.
>   I expect that this section says something similar, to the effect that
>   during the evaluation of a function call, control is transferred to
>   the called function, but I was not able to find such wording!

6.2.4 Storage duration of objects, paragraph 6, has:

  (Entering an enclosed block or calling a function suspends, but does not
  end, execution of the current block.)

The parentheses likely acknowledge that the requirement doesn't
belong in a section about storage duration.

It doesn't seem to be repeated anywhere else. It is not defined what
"entering" means.

ISO 2382-1 itself uses "enter" in multiple places without defining it.

-- 
TXR Programming Language: http://nongnu.org/txr
Cygnal: Cygwin Native Application Library: http://kylheku.com/cygnal
Mastodon: @Kazinator@mstdn.ca
NOTE: If you use Google Groups, I don't see you, unless you're whitelisted.

Back to comp.std.c | Previous | Next | Find similar


Thread

Re: Function calls Kaz Kylheku <864-117-4973@kylheku.com> - 2023-10-04 18:38 +0000

csiph-web