[fpc-devel] Blocks support

Maciej Izak hnb.code at gmail.com
Thu Jul 17 12:48:09 CEST 2014


>
> type
>   NSArrayEnumeratorBlock = procedure (obj: id; idx: NSUInteger; var stop:
> boolean) is block;
>


What you think about more oxygene compatible syntax for blocks? :

***
type
  ClickEventDelegate = block (obj: id; idx: NSUInteger; var stop: boolean);
***

 IMHO more readable :)

http://www.elementswiki.com/en/Blocks

Regards,
Maciej Izak (hnb)
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freepascal.org/pipermail/fpc-devel/attachments/20140717/7c39a836/attachment.html>


More information about the fpc-devel mailing list