Start with a function type declaration:
void function() func_ptr;
Then make an array out of it:
void function()[] func_ptr_array;
It works like other arrays, just the [] might be a little harder
to see since it is a much longer type signature. But it is still
in there, right after it,
I've been rewriting one of my emulators in D and am fairly new to
the language. I'm having trouble finding documentation on
creating/initializing/use of arrays of function pointers in D. If
anyone has a code example I'd appreciate it!
On Thursday, 21 May 2015 at 16:25:24 UTC, Adam D. Ruppe wrote:
Start with a function type declaration:
void function() func_ptr;
Then make an array out of it:
void function()[] func_ptr_array;
It works like other arrays, just the [] might be a little
harder to see since it is a much longer
On Thursday, 21 May 2015 at 16:23:15 UTC, John wrote:
I've been rewriting one of my emulators in D and am fairly new
to the language. I'm having trouble finding documentation on
creating/initializing/use of arrays of function pointers in D.
If anyone has a code example I'd appreciate it!