On Mar 29, 2009, at 10:06 PM, Luke the Hiesterman wrote:
I can't think of anything about properties that needs to be dealt with at runtime. My understanding has it that all information necessary for what properties do is available at compile time. E.g. the method to call, return types, how to compile synthesized properties using copy, retain, assign, nonatomic, and also whether to throw an error if something is readonly. So, then, my question is, what about using properties requires a runtime component? To me it feels like everything could be handled by the compiler.

The compiler emits code that calls runtime API to implement the mechanisms behind the setter/getter very efficiently and with minimal code duplication. This includes support for code that can run both GC and non-GC, as well as atomic vs. nonatomic.

b.bum

_______________________________________________

Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)

Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com

Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com

Reply via email to