[moved from fltk.development]

>> Yaskhan writes:
>>> e, how? Maybe in callbacks?
>>> (Anonymous function)
>>>

>Ian writes:
>> [..] you are going to have to clarify the question; there's not enough
>> context there to begin to know what you are asking...
>> What language?

Yaskhan writes:
> sorry. c++0x

        I don't think anyone's tried using c++0x with fltk yet.

        Assuming c++0x is back compatible with C++ (I don't know myself),
        and that FLTK can compile under c++0x (or at least somehow
        link with it), I guess the question is can a lambda be used
        in place of a callback.

        Probably; according to this document that I think describes
        c++0x's implementation of Lambdas:
        http://www.open-std.org/jtc1/sc22/wg21/docs/papers/2006/n1968.pdf
        ..which says:

lambda functions, or closures, have many uses: as the arguments to higher-order
functions (such as std::for each in the context of C++), as callbacks for I/O
functions or GUI objects, and so forth.

        I can't provide examples, and not sure if anyone else here can,
        as they're probably not using c++0x yet.

        If you've got it and are using it, and have it 'working' with
        FLTK, let us know what you've tried, as you probably know more
        about it than any of us do.
_______________________________________________
fltk mailing list
[email protected]
http://lists.easysw.com/mailman/listinfo/fltk

Reply via email to