Topic: The pointer on kvajn-function
Greetings, Last night in a head the bad idea climbed through: and whether it is possible ++ to write on a C typedef, the setting pointer on function? Certainly, it is possible, the brain answered. And whether it is possible, that this function accepted in parameter other same function (or even a little), the bad idea was not appeased. And that returned result too the pointer on the same function. Well, you remember, how in a joke about auto auto (auto)? In general, here. Whether It is possible to describe somehow similar kvajn-function? In a forehead - it is impossible, the compiler does not understand function parameter type because did not compile still itself on function. Sample magic? typedef int (*foo) (char);//OK typedef bar (*bar) (bar);//Tell is not present! typedef bar (*bar) (bar, bar); P.S. Practical sense here any - simply fluctuation of neural activity. P.P.S. Any substance did not suffer.