Every story and comment from the Hacker News API, in a layout borrowed from 2001.
A comment on Async.h – asynchronous, stackless subroutines in C. Parent comment
You get block statements just with Clang don't you? No need for libdispatch?
And you can kinda get blocks with GCC as well using a similar construct. (For the love of all that is holy, don't actually use this macro).
#define lambda(ret_type, _body) ({ ret_type _ _body _; })
There are no comments on this comment yet.
You get block statements just with Clang don't you? No need for libdispatch?
And you can kinda get blocks with GCC as well using a similar construct. (For the love of all that is holy, don't actually use this macro).
I don't quite remember, but from when I was working things out, this worked _most_ of the time for both GCC and clang.