> Am 25.11.2019 um 18:40 schrieb Fred Kiefer <[email protected]>: > > > >> Am 25.11.2019 um 11:18 schrieb H. Nikolaus Schaller <[email protected]>: >> >> Fred mentioned that it could be possible to define some block wrapper macros >> if some time is invested. >> It that works out, we do not make our decisions depend on gcc *not* >> implementing something. > > > I may not have been clear enough on that point. I think that limited block > support might be possible even with gcc, a full implementation is probably > out of reach.
The question is what we need. Maybe not some exotic corner cases. IMHO, they are mainly used as callbacks from asynchronous activities (networking). In ObjC1 this was handled by delegates or blocking and passing back complete results instead of callbacks. It looks like the key aspect is to get new block based method names in header files (almost) compatible. Well, we never can automatically replace ^ by something in application code by a cpp macro.
