3 ms·
In C a function pointer can be passed around, and usually a pointer to contect structure is passed around. That happens to be more practical. References are co
by guard-of-terra 15y ago
In C a function pointer can be passed around, and usually a pointer to contect structure is passed around. That happens to be more practical.
References are cool. That makes one point for Pascal.
- barrkel 15y agoNested routines in classical Pascal support downwards funargs; they are closures lite, i.e. actually more expressive than C functions. But we are talking classical Pascal; every practical commercial Pascal implementation supports function pointers directly, just like C does.