> argument saying that "VAR v: POINTER TO x;" is better than "struct x * v;"
Meh, each to their own I guess, but I definitely prefer C++ over that bloated syntax, where "x* v;" is sufficient by the way.
Meh, each to their own I guess, but I definitely prefer C++ over that bloated syntax, where "x* v;" is sufficient by the way.
(*signal(int sigcatch, void (*func)(int sigraised)))(int);
I can't think of any C-derived language (other than C++) that uses C-style declarations. typedef int signal_func(int sigcatch, raised_func f);
foo.h:
signal_func* p_handler;
foo.cc:
signal_func my_handler {
...
}
This would avoid a lot of repetition and is easier to read IMO.(Indeed knowing all, or merely many, of the gotchas would speak against the conjecture.)