Just added a part on Closure: http://blog.vjeux.com/2011/javascript/jspp-morph-cpp-into-ja...
It was a bit more difficult than expected :(
It was a bit more difficult than expected :(
This makes doing something like e.g. map(map(...)) extremely annoying.
Javascript (nor does, really, any other proper closure implementation) has no such issues.
Indeed, the following easy code ( http://pastebin.com/bjFWBrJq ) does not compile under Visual Studio: "function returning function is not allowed"
It works fine in g++ though.