Mailing Lists: Apple Mailing Lists
Image of Mac OS face in stamp
Re: Objective-C 2.0
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Objective-C 2.0



Dietmar Planitzer:
> Greg Hurrell:
>> Dietmar Planitzer:
>>>
>>> There are a ton of highly interesting things there. I like all of
>>> them - but my personal favorit is the AGC stuff.
>>
>> Could you comment a bit more about that? What are some of the highly
>> interesting things in there. I've looked at the CVS repository but I
>> don't know enough to really interpret what's in there that's going to
>> benefit me; from my perspective as an Objective-C user (not a compiler
>> hacker).
>
> Jason has already listed some of those features (method attributes, agc,
> properties). Now a disclaimer, before we go further:

Subject to the same disclaimers, I note:

* Properties: properties may be writeable or read-only, and copying or
  non-copying.
  It seems as though they can be based on custom getter and setter
  methods, or on auto-generated setter and getter methods for an
  existing ivar, or have both ivar and methods generated by the
  compiler.

* Runtime structures such as objc_class and the method dispatch table
  will change.

* There is something about "indirect references" through which ivars
  cannot be accessed directly.

* A warning that "type-cast of @selector expression won't be supported
  in future" (so if you're treating SELs as strings, start using
  sel_getName() or NSStringFromSelector()).

* Protocol methods may be @required or @optional.

* That metaclass stuff. What's a metaclass?

* A foreach() construct, as Dietmar mentioned. This appears to work
  directly with the collection being iterated over rather than using
  an intermediate NSEnumerator. It also fetches sixteen elements at
  a time to reduce message calls.


--
Jens Ayton
 _______________________________________________
Do not post admin requests to the list. They will be ignored.
Objc-language mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:

This email sent to email@hidden

References: 
 >Objective-C 2.0 (From: "Philippe C.D. Robert" <email@hidden>)
 >Re: Objective-C 2.0 (From: Dietmar Planitzer <email@hidden>)
 >Re: Objective-C 2.0 (From: Greg Hurrell <email@hidden>)
 >Re: Objective-C 2.0 (From: Dietmar Planitzer <email@hidden>)



Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2011 Apple Inc. All rights reserved.