>On Apr 26, 2005, at 3:13 PM, Mike Stump wrote: >I'm pushing the Objective-C++ frontend into the FSF source tree on mainline. >In doing this, I'm also pushing various >updates to the Objective-C language; fast dispatching, >GC, a new warning or two, a way to get at C++ ctors/dtors from a >ObjC method. Most of these would require library work to be complete. Some details:
* fast dispatching
* GC * C++ ctors / dtors In Objective-C++, an Objective-C class may have ivars that are C++ objects with constructors and destructors. This compiler change emits -.cxx_construct and -.cxx_destruct methods containing the C++ default constructors and destructors for these classes. The runtime calls these methods during instance allocation and deallocation. The ctors/dtors are probably interesting for GNUstep, because it makes Objective-C++ much easier for the programmer. Apple's runtime support is new in Tiger, so you'll be able to see it in the upcoming Darwin release. Adding support to GNU libobjc should be straightforward.
--
|
The immediate call to zero page memory (as we old timers like to call it fondly) will be a big win and the advantage of using IMPs will diminish greatly (although not completely).
I hope there will be a possibility to turn the GC mechanism off and still use Foundation and Appkit, otherwise I am most likely to become very unhappy with future Mac OS versions..