|
|
Warp wrote:
> The reason is that there's no way in the current
> C++ to embed the function into the for_each() call.
> that the function has no access to the variables in the scope where the
> for_each() is executed.
Technically, these are both the same problem. :-) I just thought that was
an amusing observation when I saw it: C *does* have closures. It just
doesn't have nested function scopes, so closures and pointers-to-functions
are the same thing in C.
I really have to wonder, sometimes, how far people are going to mutate C++
before they just give up and decide they're done. :-)
--
Darren New, San Diego CA, USA (PST)
My fortune cookie said, "You will soon be
unable to read this, even at arm's length."
Post a reply to this message
|
|