Re: Function pointer array as parameter to a function
Bart <bc@freeuk.comw rites:
<snip>
The normal rule is just to write a declaration, remove the name and
the ; and enclose in ()s. Do you have an example where this is wrong?
--
Ben.
Bart <bc@freeuk.comw rites:
On May 20, 4:10Â am, Bart <b...@freeuk.co mwrote:
I'm having trouble however building cast types using this method.
>
I've tried doing the above using a dummy name, which is then removed
and the whole thing enclosed in parentheses. And I've tried keeping
the original extra parentheses around each extra addition.
>
But cdecl is temperamental on these and compilers don't generally tell
you the exact meaning of the type; only lccwin spells it out in
English but it doesn't always correspond to what I think.
>
So what is the normal technique for a type specification to be
converted from declarative form to a cast?
>
I've tried doing the above using a dummy name, which is then removed
and the whole thing enclosed in parentheses. And I've tried keeping
the original extra parentheses around each extra addition.
>
But cdecl is temperamental on these and compilers don't generally tell
you the exact meaning of the type; only lccwin spells it out in
English but it doesn't always correspond to what I think.
>
So what is the normal technique for a type specification to be
converted from declarative form to a cast?
the ; and enclose in ()s. Do you have an example where this is wrong?
--
Ben.
Comment