Return Styles: Pseud0ch, Terminal, Valhalla, NES, Geocities, Blue Moon. Entire thread

Dynamically Typed C/C++

Name: Anonymous 2013-08-03 5:07

consider: template <T> T f(T X) {return T.increment();}

if we delay compilation of f to runtime, then f can take any, even unknown beforehand type. I.e. a C++ function becomes equivalent to Lisp function, without sacrificing any efficiency or changing semantics, beside startup time. And the only requirement is inclusion of compiler into runtime.

Name: Anonymous 2013-08-04 12:30

C++14 is adding auto as a parameter type specifier.
auto f(auto X) {return X.increment();}

Newer Posts
Don't change these.
Name: Email:
Entire Thread Thread List