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++ ?


Martin Uecker <muecker@mayn.de> wrote:

    Martin> In GNU-C you can do something like this:
...
    Martin> qsort(N, closure(int, (int i, int j), compare_foo(A[i], A[j])),
    Martin>          closure(void, (int i, int j), SWAP(A[i], A[j])));

i didn't know that, is it documented anywhere? sounds a bit like what
i'm trying to achive. do you have access to the automatic variables
defined around the call to qsort? does it work for g++?

thanks very much for the hint...

                "Thomas Steffen" <for_replies_only@iname.com> 
-- 
We regret to announce that Windows 2000 wont be ready before 1901.


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