User loginNavigation |
Can function pointers be "fixed"Whilst thinking on the subject of language design, specifically lowish-level (C++ level), I came up against the seeming brick wall of function pointers. Now, whilst function declarations can be modified to allow for such niceties as closures, coroutines and multiple return values, function pointers, it seems, can never be harnessed for the power of good. The reason for this seems to be the way that functions are declared in C-type languages, i.e. completely differently from data and, I might add, rightly so. I much prefer:
is just completely whack compared to the rest of the data declarations. So my question is this, has anyone encountered a statically-typed function/funcpointer declaration system that is at all elegant? -DNQ By disnesquick at 2008-09-29 21:20 | LtU Forum | previous forum topic | next forum topic | other blogs | 4556 reads
|
Browse archives
Active forum topics |
Recent comments
37 weeks 4 days ago
37 weeks 4 days ago
37 weeks 4 days ago
1 year 7 weeks ago
1 year 11 weeks ago
1 year 13 weeks ago
1 year 13 weeks ago
1 year 16 weeks ago
1 year 20 weeks ago
1 year 20 weeks ago