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


Groups > comp.lang.c > #163273

Re: on confusing procedure names with the address of procedures

From James Kuyper <jameskuyper@alumni.caltech.edu>
Newsgroups comp.lang.c
Subject Re: on confusing procedure names with the address of procedures
Date 2021-10-30 15:17 -0400
Organization A noiseless patient Spider
Message-ID <slk5nr$km2$1@dont-email.me> (permalink)
References <86bl37e49v.fsf@levado.to> <sliebn$16l6$1@gioia.aioe.org> <slil2c$pke$1@dont-email.me> <slju07$1ghj$1@gioia.aioe.org>

Show all headers | View raw


On 10/30/21 1:05 PM, Manfred wrote:
> On 10/30/2021 7:26 AM, James Kuyper wrote:
>> On 10/29/21 11:32 PM, Manfred wrote:
...
>>>     void (*foo)() = bar;
>>>
>>>     // You can execute the call in both of the following ways:
>>>
>>>     foo(); // the pointer is implicitly dereferenced
>>
>> That hasn't been true since C90.
>>
> 
> I guess you mean that the pointer is not "dereferenced", ...

Correct.

> ... but still the 
> expression is a valid call to the function, so the statement "You can 
> execute the call in both ways" still holds.

Yes. I didn't think about the possibility that I could have been
interpreted as disagreeing with both comments.

Back to comp.lang.c | Previous | NextPrevious in thread | Next in thread | Find similar | Unroll thread


Thread

on confusing procedure names with the address of procedures Meredith Montgomery <mmontgomery@levado.to> - 2021-10-29 21:37 -0300
  Re: on confusing procedure names with the address of procedures Keith Thompson <Keith.S.Thompson+u@gmail.com> - 2021-10-29 18:29 -0700
  Re: on confusing procedure names with the address of procedures Tim Rentsch <tr.17687@z991.linuxsc.com> - 2021-10-29 18:33 -0700
  Re: on confusing procedure names with the address of procedures Manfred <noname@add.invalid> - 2021-10-30 05:32 +0200
    Re: on confusing procedure names with the address of procedures James Kuyper <jameskuyper@alumni.caltech.edu> - 2021-10-30 01:26 -0400
      Re: on confusing procedure names with the address of procedures Manfred <noname@add.invalid> - 2021-10-30 19:05 +0200
        Re: on confusing procedure names with the address of procedures James Kuyper <jameskuyper@alumni.caltech.edu> - 2021-10-30 15:17 -0400
  Re: on confusing procedure names with the address of procedures Bart <bc@freeuk.com> - 2021-10-30 11:36 +0100
  Re: on confusing procedure names with the address of procedures Noob <root@127.0.0.1> - 2021-11-01 13:03 +0100

csiph-web