I was hoping for someone with a working knowledge of blocks to step in here.
But currently I seem to be the only one operating this mailing list :-)
If you have a look in the file Tests/base/NSArray/blocks.m you will find
examples on how to write an NSBlock for a compiler that supports it. A very
simple one would be this:
^() { return YES; }
You should also be able to simulate blocks with gcc, but I am not sure how to
do this :-(
> Am 16.06.2018 um 08:18 schrieb amon <[email protected]>:
>
> Yes, I found the macro. What is missing is a usage example
> for the user documentation.
>
> Without having to decompile the macro, how would a user figure
> out how to actually use it?
>
> I'd love to be pointed at some example code. I'm much more
> likely to use a feature that doesn't require me to reverse
> engineer and guess from source.
_______________________________________________
Discuss-gnustep mailing list
[email protected]
https://lists.gnu.org/mailman/listinfo/discuss-gnustep