I'm studying in-depths of languages, so I can understand what's happening in code, rather than print some things and watch and see what happens.
Recently, in search for better implementation for class function table I found myself stumbled upon this C language standard: http://www.iso-9899.info/wiki/Typedef_Function_Type
I've tried it out and it seems working feature:
typedef void fnr(int x);
main()
{
fnr t;
}
This seemed a glorious day for me searching the way to pack up functions into my structure, until I realized, that fnr t;
is not as useful as I had intended. It can neither be assigned, nor used the proper way I wished it to be (probably lambda for C-users). It does not even exist in disassembly!
What does this language feature do? What can it be used for besides simplifying function pointers?