On Thu, Jul 1, 2010 at 10:30 AM, Jonathon Kuo
<newsli...@autonomy.caltech.edu> wrote:
> Interesting... so what happens at runtime if a class object invokes an 
> instance method that accesses instance variables? Exception? Assertion? Seg 
> fault?

"Invoke" is an inaccurate word. Let's use the proper term, "send a
message." The sender of the message is irrelevant; all that matters is
the receiver.

It sounds like you have gotten confused, and interpreted the above
thread to mean that a class object will respond to its instance
methods? This is not true. A class object will only respond to
instance methods defined on the root class.

--Kyle Sluder
_______________________________________________

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