Apple Blocks added to C++?

Sean Kelly sean at invisibleduck.org
Thu Sep 3 15:07:16 PDT 2009


== Quote from Michel Fortin (michel.fortin at michelf.com)'s article
> On 2009-09-03 14:14:27 -0400, Sean Kelly <sean at invisibleduck.org> said:
> > == Quote from Walter Bright (newshound1 at digitalmars.com)'s article
> >> One could argue that gcc has them as an extension but nobody uses them.
> >> My experience with adding extensions to DM C++ is that nobody uses them
> >> because it is non-standard, not because they are a bad idea.
> >
> > And that's why I won't be using Apple's new closures, regardless of whether
> > I'd actually find them useful.
> Even for OSX-specific code?

Yup.  I always write code with portability in mind, because my target platforms
have a way of changing.  If I were writing user-mode applications for OSX
this might be different, since I'd be using Cocoa or whatever anyway, but...

> I see no reason not to use them in a Cocoa app for instance, nor when
> you want to schedule tasks using Grand Central Dispatch. You're already
> bound to Apple-world anyway.

Yeah exactly.  That just isn't the realm that I work in.



More information about the Digitalmars-d mailing list