this poster tends to post with low information content
but high abuse content.
On Nov 2, 6:30 am, Nomen Nescio <nob...@dizum.c omwrote:
<snip>
>
This specifies that parameter A is a pointer to a function
>
'A' would be the name of a function. C automatically converts the name
into
a pointer to a function. The term used in the standard is "decays to
a
function pointer"
it specifies that the parameter is a function pointer
<snip>
your word salad seems more PoM than anything else I've
seen recently on clc.
ok. It is specified that the parameter is a pointer to a function.
The parameters aren't passed here. You needd to look at the call
to A that, presumably, appears in Function().
<snip nonsense>
--
Nick Keighley
but high abuse content.
On Nov 2, 6:30 am, Nomen Nescio <nob...@dizum.c omwrote:
lancer6...@yaho o.com said:
[I] saw a function header defined as:
int Function(int value1, int value2, (int *A)(void *A1, int *A2, void
*A3), void *A3)
*A3), void *A3)
and the function is called by
Function(value1 , value2, A, A3);
into
a pointer to a function. The term used in the standard is "decays to
a
function pointer"
Is the "(int *A)(void *A1, int *A2, void *A3)" in the function header
equivalent to passing a function (A) to another function (Function)?
equivalent to passing a function (A) to another function (Function)?
Practically speaking, yes. In CLC-talk, no. Numerous semanticists,
postmodernists,
postmodernists,
your word salad seems more PoM than anything else I've
seen recently on clc.
Something to think about: If "(int *A)(void *A1, int *A2, void *A3)"
were replaced by "int A[]", would an entire array be passed to
Function() or something else?
>
>
They're not, at least not in the sense you probably think.
were replaced by "int A[]", would an entire array be passed to
Function() or something else?
>
If so, how are the arguments to A passed into Function when Function
is called?
is called?
They're not, at least not in the sense you probably think.
The parameters aren't passed here. You needd to look at the call
to A that, presumably, appears in Function().
<snip nonsense>
--
Nick Keighley
Comment