composition of functions
Brian Bliss
bliss at sp64.csrd.uiuc.edu
Thu Feb 14 08:22:50 AEST 1991
>Reading all the flamage about composable functions, I am forced to
>note that everyone appears to agree:
(1) Functions are not first-class objects in C
(2) Composition is a difficult notion to express in C.
>The disagreements are on the subject of whether this problem is a
>major failing in the language.
1) i agree with.
2)
say you have two functions,
int f (int x);
int g (int x);
what's so hard about writing:
int fg (int x) { return (f(g(x)); }
???????????????????
bb
More information about the Comp.lang.c
mailing list