Discussion about this post

User's avatar
lcamtuf's avatar

If you're curious about my remark that the function typedef is useless, it's because you can't use it for definitions, just for declarations. You can do this:

typedef int functype(char* x);

functype myfunc;

...and it's essentially equivalent to:

int myfunc(char* x);

...but then you still need to define myfunc() "manually" by restating the parameters and the return value. This won't work:

typedef int functype(char* x);

functype myfunc {

puts("Hello world");

}

Expand full comment
Manuel Capel's avatar

Totally degen, loved it :) How come you are so familiar with all those arcane obscure specifications of the C standard? Had you been a business lawyer, you would be filthy rich right now, combining arcane loop-holes ad absurdum to get anything.

Expand full comment
10 more comments...

No posts