• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Question on Objective C++
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Question on Objective C++


  • Subject: Question on Objective C++
  • From: Oscar Morales Vivó <email@hidden>
  • Date: Wed, 6 Mar 2002 18:46:39 +0100

Hi there. I'm trying to build a Cocoa front-end to a bunch of C++ code I have. I've read the Objective-C++ documentation and it seems it will work fine for me. There's a couple of doubts I have, however.

The docs state that the only C++ object instances that you can put in an Objective-C object are those that don't have virtual functions. It also says that constructors and destructors won't be called when init/dealloc the object. However: is there some kind of default initialization done on the instance data of an Objective-C object? The C++ objects I plan to use as instance variables are smart pointers which would be fine if they were initialized to 0 (as I could later change their value in init) but would cause me no end of troubles if garbage were left on them. The docs didn't make it clear on this point.

Thanks in advance for your help.

Oscar Morales.
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.

  • Follow-Ups:
    • Re: Question on Objective C++
      • From: "Erik M. Buck" <email@hidden>
    • Re: Question on Objective C++
      • From: "Kenneth C. Dyke" <email@hidden>
    • Re: Question on Objective C++
      • From: "Timothy J. Wood" <email@hidden>
    • Re: Question on Objective C++
      • From: Lance Bland <email@hidden>
  • Prev by Date: Specific byte size data type?
  • Next by Date: Re: Question on Objective C++
  • Previous by thread: Re: Specific byte size data type?
  • Next by thread: Re: Question on Objective C++
  • Index(es):
    • Date
    • Thread