eerolanguage / eero

Eero was a fully binary- and header-compatible dialect of Objective-C, implemented with a modified version of the Apple-sponsored LLVM/clang open-source compiler. It featured a streamlined syntax, Python-like indentation, and other features that improve readability and code safety. It was inspired by languages such as Smalltalk, Python, and Ruby.
https://web.archive.org/web/20171101134337/http://eerolanguage.org/
288 stars 7 forks source link

Automatic Reference Counting Bug #39

Closed esummers closed 11 years ago

esummers commented 11 years ago

When using ARC, you need to provide annotations when casting in the form of bridge, bridge_transfer, or __bridge_retain for Core Foundation types.

I would expect this to work:

Array arr = (__bridge_transfer Array)my_cf_array 

Instead it requires the pointer to be specified instead of using implicit pointers like everywhere else.

Array arr = (__bridge_transfer Array *)my_cf_array 
esummers commented 11 years ago

This is similar to the closed issue #11.

andyarvanitis commented 11 years ago

Thanks!

andyarvanitis commented 11 years ago

Fixed in commit 621a8707b19401d9cc96a1fadd37453855e5ba56. Binaries also updated in clang-eero-2013-07-21.zip.