David Brown wrote:
On Sun, Mar 30, 2008 at 12:36:46AM -0700, Christopher Smith wrote:
http://herbsutter.spaces.live.com/blog/cns!2D4327CC297151BB!785.entry
You may now commence griping about how C++ sucks, is overly complex,
and these changes only make it worse.
Closures are somewhat useful, at least if the language has garbage
collection.
I find that an odd statement. You can use functors as closures already
in C++ (C++0X just avoids it being so syntactically cumbersome), and
I've done this a fair bit for at least 5 years. While aspects of C++
have, as always, proven to be annoying when doing this, memory
management never really cropped up as a particular problem with
functors. Can you give an example of how explicit memory management
limits the usefulness of closures?
--Chris
--
KPLUG-LPSG@kernel-panic.org
http://www.kernel-panic.org/cgi-bin/mailman/listinfo/kplug-lpsg