Here’s a handy guide to reading C declarations, where things can get very confusing very quickly. Quick — what’s being declared in the line “int (*(*vtable)[])();” ?
How to Read C Declarations
Previous post: Your First Warning: DemoCamp 17 Takes Place on Monday, February 25th
Next post: Adding Type Checking in Ruby
{ 1 trackback }
{ 2 comments… read them below or add one }
Ya know what that declaration says to me? “Thank god you don’t program in C anymore” :)
I haven’t programmed seriously in C/C++ for a decade or more…but it’s still simple: “vtable” is a pointer locating an array of pointers to functions returning int.