Re: Thinking (again) about an Objective-C bridge
Ronald Oussoren <[email protected]> Tue, 18 Jun 2013 17:38:40 +0200
| Newsgroups | gmane.comp.lang.dylan.gwydion.devel |
|---|---|
| Message-ID | <[email protected]> |
On 18 Jun, 2013, at 17:34, Bruce Mitchener <[email protected]> wrote: > > It would be nice to find a way to integrate with ARC, but I don't know how or where that's implemented in the normal Clang / LLVM toolchains. The runtime APIs for ARC are listed here: http://clang.llvm.org/docs/AutomaticReferenceCounting.html#runtime-support For the most part ARC is just inserting calls to retain and release in the right places (although using functions instead of message sends), but there are also APIs that can avoid adding objects to an autorelease pool for the common case of: -(id)message { return [[someValue copy] autorelease]; } ... result = [[object message] retain]; Ronald _______________________________________________ hackers mailing list [email protected] https://lists.opendylan.org/mailman/listinfo/hackers