Re: Apple Blocks added to C++?

2009-09-01 Thread Tim M
S. Wrote: > Been awhile since I posted. > > I was wondering what other people thought about this addition to C++ by > Apple. Heh. > > http://arstechnica.com/apple/reviews/2009/08/mac-os-x-10-6.ars/10 > It is actually intended to be added to C which is kinda weird and against C's road map.

Re: Apple Blocks added to C++?

2009-09-01 Thread Tim M
Nick Sabalausky Wrote: > "Walter Bright" wrote in message > news:h7l32i$e...@digitalmars.com... > > S. wrote: > >> I was wondering what other people thought about this addition to C++ by > >> Apple. Heh. > >> > >> http://arstechnica.com/apple/reviews/2009/08/mac-os-x-10-6.ars/10 > > > > > > I

Re: Apple Blocks added to C++?

2009-09-01 Thread Nick Sabalausky
"Walter Bright" wrote in message news:h7l32i$e...@digitalmars.com... > S. wrote: >> I was wondering what other people thought about this addition to C++ by >> Apple. Heh. >> >> http://arstechnica.com/apple/reviews/2009/08/mac-os-x-10-6.ars/10 > > > I find it strange that people are continuing

Re: Apple Blocks added to C++?

2009-09-01 Thread Walter Bright
S. wrote: I was wondering what other people thought about this addition to C++ by Apple. Heh. http://arstechnica.com/apple/reviews/2009/08/mac-os-x-10-6.ars/10 I find it strange that people are continuing to reinvent nested functions in ugly ways.

Re: Apple Blocks added to C++?

2009-09-01 Thread Rainer Deyke
S. wrote: > Been awhile since I posted. > > I was wondering what other people thought about this addition to C++ by > Apple. Heh. It doesn't solve any major problem and the syntax is ugly. If it was standard C++, I'd use it anyway. Since it isn't, I'll stick with Boost.Lambda (which is more l

Apple Blocks added to C++?

2009-09-01 Thread S.
Been awhile since I posted. I was wondering what other people thought about this addition to C++ by Apple. Heh. http://arstechnica.com/apple/reviews/2009/08/mac-os-x-10-6.ars/10

Re: const and immutable objects

2009-09-01 Thread Graham St Jack
On Mon, 31 Aug 2009 15:20:21 -0500, Andrei Alexandrescu wrote: > Graham St Jack wrote: >> I have been trying (again) to start using const and immutable objects >> in a project, and found I kept getting stuck with the need to change >> the value of object references, which isn't allowed. I don't qu

Re: How Nested Functions Work, part 1

2009-09-01 Thread Walter Bright
Walter Bright wrote: http://www.reddit.com/r/programming/comments/9fk6g/how_nested_functions_work_part_1/ Another thread on it! http://www.reddit.com/r/programming/comments/9ga7e/c_lambdas_vs_apples_c_blocks/

Re: type switch

2009-09-01 Thread Jarrett Billingsley
On Tue, Sep 1, 2009 at 7:39 PM, Paul D. Anderson wrote: > I came across Lava, an experimental programming language ("What's hotter than > Java?") http://lavape.sourceforge.net/LavaHomePage.htm Lava has some curious > features (they claim to have no syntax, but the syntax is just hidden by the >

type switch

2009-09-01 Thread Paul D. Anderson
I came across Lava, an experimental programming language ("What's hotter than Java?") http://lavape.sourceforge.net/LavaHomePage.htm Lava has some curious features (they claim to have no syntax, but the syntax is just hidden by the "programming environment"). One of the evils of other programmi

Re: Unofficial wish list status.(Sep 2009)

2009-09-01 Thread Saaa
Only curious, what is the influence record of the wishlist?

Re: OT: What's your favorite codeline?

2009-09-01 Thread Robert Fraser
downs wrote: foo.betweens("src=\"", "\"") /select/ (string s) { return s.find(criteria) != -1; } Heh, I love that infix expression syntax. Too abd it ends up with a completely useless wrapper struct & 2 function calls, but hopefully LDC can inline that out. auto videocon = ctx.g

Re: Grand Central Dispatch & Blocks in Apple's C

2009-09-01 Thread Michel Fortin
On 2009-09-01 10:07:42 -0400, Jeremie Pelletier said: OpenCL is Apple's baby, no wonder they're a little ahead in their implementation. Just be pacient, I'm sure others will appear soon. The specification is overseen by the Khronos group, Apple was a major contributor, and they had the origi

Re: How Nested Functions Work, part 1

2009-09-01 Thread Manfred_Nowak
Walter Bright wrote: > I try to [...] rofl :-) -manfred

Re: Grand Central Dispatch & Blocks in Apple's C

2009-09-01 Thread Jeremie Pelletier
Michel Fortin Wrote: > > Plus, they have OpenCL. I've seen about a half dozen OpenCL examples > > specifically for non-Mac machines, but none bother to tell you how to > > actually GET an OpenCL implementation, or if they're even available. *sigh* > > OpenCL is Apple's baby, no wonder they're a

Re: const and immutable objects

2009-09-01 Thread Andrei Alexandrescu
Graham St Jack wrote: I have been trying (again) to start using const and immutable objects in a project, and found I kept getting stuck with the need to change the value of object references, which isn't allowed. I don't quite follow the arguments that mean that this has to be the case, but I'

Grand Central Dispatch & Blocks in Apple's C

2009-09-01 Thread Michel Fortin
On 2009-09-01 08:15:39 -0400, Daniel Keep said: Oh sod blocks; the REAL awesome in that example is Grand Central Dispatch. For those who don't know, it's a parallelism framework that lets you farm off tasks to thread pools, with a few neat additions: 1) you can express dependencies and 2) the

Re: How Nested Functions Work, part 1

2009-09-01 Thread Daniel Keep
Michel Fortin wrote: > On 2009-08-30 17:34:36 -0400, Walter Bright > said: > >> http://www.reddit.com/r/programming/comments/9fk6g/how_nested_functions_work_part_1/ >> > > It's >> > true that C doesn't have nested functions, but Apple's version of C, C++ > and Objective-C, starting with Snow L

Re: How Nested Functions Work, part 1

2009-09-01 Thread Michel Fortin
On 2009-08-30 17:34:36 -0400, Walter Bright said: http://www.reddit.com/r/programming/comments/9fk6g/how_nested_functions_work_part_1/ It's true that C doesn't have nested functions, but Apple's version of C, C++ and Objective-C, starting with Snow Leopard, has it. Well, it has nested fu