Liste des Groupes | Revenir à cl c |
On 12/04/2025 15:21, Richard Heathfield wrote:<snip>On 12/04/2025 13:39, David Brown wrote:
That's a perfectly valid reason to prefer your way, and mine is a perfectly valid reason to prefer mine. TMTOWTDI.C is a flexible language, and also caters for those that have heretical opinions. I have no use of a function type in a language that does not treat functions as first class objects - you cannot pass a function as a parameter, return one from a function, or even have a function object. You always deal with pointers to functions.typedef int (*FIntInt)(int);>
>
FIntInt funcs[10];
Just one tiny point, though. I've never been a fan of hiding pointers behind typedefs. I would much prefer:
>
typedef int FIntInt(int);
>
FIntInt *funcs[10];
>
>
Better to have those *s out in the open, where we can keep an eye on them.
>
Les messages affichés proviennent d'usenet.