On Thursday, 4 September 2014 at 14:00:14 UTC, Ali Çehreli wrote:
On 09/04/2014 02:54 AM, nikki wrote:
> a pointer variable to save an adres of a function, then
dereferencing to use
> it.
If possible, even in C, I would recommend using a 'function
pointer' for that. However, there are cases where the signature
of the function should be unknown to the code that is storing
it so a void* is used. (Note that, as discussed on these forums
in the past, void* has always been intended to be a data
pointer. The fact that it works for function pointers is
something we get as lucky accidents, which will most probably
always supported by compilers and CPUs.)
...
Ali
Ah right I was so busy with these * and & ;)
Thanks!