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 | 4492 reads
|
Browse archives
Active forum topics |
Recent comments
22 weeks 6 days ago
22 weeks 6 days ago
22 weeks 6 days ago
45 weeks 17 hours ago
49 weeks 2 days ago
50 weeks 6 days ago
50 weeks 6 days ago
1 year 1 week ago
1 year 6 weeks ago
1 year 6 weeks ago