Re: Properties and the runtime
Re: Properties and the runtime
- Subject: Re: Properties and the runtime
- From: Bill Bumgarner <email@hidden>
- Date: Sun, 29 Mar 2009 22:15:33 -0700
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 (email@hidden)
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:
This email sent to email@hidden