• 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
Thanks and comments.
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Thanks and comments.


  • Subject: Thanks and comments.
  • From: Oscar Morales Vivó <email@hidden>
  • Date: Wed, 6 Mar 2002 23:19:25 +0100

Ok. Thanks for the overwhelming response to my questions on C++. To clear some points, when I mentioned not being able to include C++ objects with virtual functions as instance variables for Objective-C objects, I meant the objects themselves and not pointers to them, which quite clearly don't cause any problem.

Also, if it is standard Objective-C to zero-overwrite the isa struct before starting, it works perfectly, as my smart pointers just encapsulate two pointers to the same object (fully explaining the design decisions behind that would be rather long). An overwrite of 0 is exactly the same as applying the default constructor to the smart pointer, so I just have to assign the actual object pointer in init, and assign NULL again in dealloc.

BTW, if someone wants a rather robust and complete smart pointer implementation for C++, just e-mail me. Although it has been rather tested by now, it could use some further testing :o)

Thanks for your help. More questions to follow.

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.

References: 
 >Drag&drop solved (From: Bill Cheeseman <email@hidden>)

  • Prev by Date: Re: NSBezierPath Problem...
  • Next by Date: Help Please?
  • Previous by thread: Drag&drop solved
  • Next by thread: A call for localizers
  • Index(es):
    • Date
    • Thread