Mailing Lists: Apple Mailing Lists
Image of Mac OS face in stamp
Re: AGC was: Re: inner classes not possible,(in objc) right?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: AGC was: Re: inner classes not possible,(in objc) right?




On Apr 2, 2005, at 2:06 PM, Pete French wrote:

From: Dietmar Planitzer <email@hidden>

[long, well thought out article on GC in ObjC snipped]

You, know, for the first time in umpteen years of working with
ObjC I am actually convinced by an argument in favour of AGC!

The one thing which keeps comming to mind, however, is "how do we get
there from here" ? For myself I just use raw Objective C under Unix,
(as I assume a lot of people on this list do?) - but the majority of people
writing ObjC out there are doing so on Apple style systems. Anyone who
survived through the change to reference counting when NXObjects becaome
NSObjects really isn't going to want to see another sesimic shift in
the way memory allocation is handled. It was painful enough last time round.


Or are you suggesting that "retain" and "release" simply become methods
which do nothing on those systems and we leave it all up to the GC system ?

That would definitely be the best solution. However, I can imagine that implementing such a solution so that it completely gets rid of the overhead associated with reference counting including the message dispatch overhead for -retain, -release and -autorelease, without adding new overhead, would be, well, not easy.


Anyway, all this is pure theory. If anyone ever wants to see AGC support in ObjC, then the best way to achieve that goal is by filing an enhancement request against ObjC in Apple's radar. If enough of us do this, it may happen some day.


Regards,

Dietmar Planitzer

_______________________________________________
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: 
 >Re: AGC was: Re: inner classes not possible,(in objc) right? (From: Pete French <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.