Comment on Anonymous functions in CparentComments−mtdewcmu12yI thought those were only available on OSX and iOS.−Moto745112yNope, clang can be used on BSD, Linux, and Windows as well.http://clang.llvm.org/get_started.html−mtdewcmu12yI'm aware of that, but do you get blocks?−e12e12yEg on Debian: apt-get install libblocksruntime0 libblocksruntime-devhttp://compiler-rt.llvm.org/−binarycrusader12yIndeed, I don't think you do: Blocks are supported for programs developed for Mac OS X 10.6+ and iOS 4.0+,[1] although third-party runtimes allow use on Mac OS X 10.5 and iOS 2.2+.[2] http://en.wikipedia.org/wiki/Blocks_(C_language_extension)−nitrogen12yThat page does mention Linux in one section: https://en.wikipedia.org/wiki/Blocks_%28C_language_extension...−binarycrusader12yThat's really annoying; the headline claims one thing and the later text clearly contradicts.Regardless, both of you appear to be correct: BlocksRuntime - a target-independent implementation of Apple "Blocks" runtime interfaces. http://compiler-rt.llvm.org/−fyolnish12yYou do, I've used them on Linux myself.
Comments
I thought those were only available on OSX and iOS.
Nope, clang can be used on BSD, Linux, and Windows as well.
http://clang.llvm.org/get_started.html
I'm aware of that, but do you get blocks?
Eg on Debian: apt-get install libblocksruntime0 libblocksruntime-dev
http://compiler-rt.llvm.org/
Indeed, I don't think you do:
http://en.wikipedia.org/wiki/Blocks_(C_language_extension)That page does mention Linux in one section: https://en.wikipedia.org/wiki/Blocks_%28C_language_extension...
That's really annoying; the headline claims one thing and the later text clearly contradicts.
Regardless, both of you appear to be correct:
http://compiler-rt.llvm.org/You do, I've used them on Linux myself.