discuss-gnustep
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: POC / gcc


From: Chris Vetter
Subject: Re: POC / gcc
Date: Fri, 09 Jun 2006 11:21:03 +0200

On 2006-06-09 10:28:05 +0200 Marc Brünink <mbruen@smartsoft.de> wrote:
>>    Secondly, honest to God actual closures (called blocks for some reason).
> Closures!? Neat! I want closures, too.... Now !!  :-)

You can implement blocks (or closures) using macros. It's not trivial, but 
relatively simple.

> More than once I was wondering why Objective-C does not have closures at all. 
> So now I know: Its all apple's fault :-)

The TaskMaster ( http://www.virtualschool.edu/cox/pub/TaskMaster/index.html ) 
outlines a way of implementing blocks.

> Could someone please hack gcc so we get closures?

AFAIK, there already is a proposal for implementing blocks in GCC. No need to 
'hack' it.

-- 
Chris






reply via email to

[Prev in Thread] Current Thread [Next in Thread]