This is the mail archive of the gcc@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Re: Blocks in g++ ?


Thomas Steffen <t.steffen@tu-harburg.de> writes:

> b) long life closures. these can be hooks or call-back stuff, useful
>    for GUI programming and similar things. they have to live longer
>    than the scope of their name, so destruction is a problem. but it
>    is no more a problem than with any other C++ object. these closures 
>    can be represented by object (they are some sort of anonymous
>    classes, like you can do them in Java, right?). 
> 
> imho you can't have both at the same time, at least not in any usual
> environment (you can in tcl...). but i was interested in variant
> a). just a short example what you could do with it:

Scheme might be a better example.  Closures are one thing that Tcl
lacks, unfortunately.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]