> -----Original Message-----
> From: Alexander Hinds [mailto:[EMAIL PROTECTED]]
> Sent: Monday, April 17, 2000 6:35 PM
> To: Palm Developer Forum
> Subject: RE: Movable class objects? This is kind of strange...
> <LYR3523-4367-2000.04.17-13.19.26--ahinds#backupbuddy.com@news
> .palmos.co
> m>
>
>
> What you did is basically legit.
>
> You may want to read about overriding operators new&delete,
> and "placement
> new" in Soustroup's C++ Programming Language and the C++ FAQ,
> for starters.
Yeah, I remember reading about placement new a few weeks ago and thinking
"oh yuck."
> Creating objects the first way (eg. simple MemHandleNew())
> won't work with
> objects that have virtual functions. For that you'd need to use the
> MemMove() approach you described to set up your vptr.
Thanks Alexander, you've confirmed my suspicions about vfcns too. Looks
like I have my work cut out for me!
-Jeff Ishaq
Vanteon (formerly The Windward Group)
--
For information on using the Palm Developer Forums, or to unsubscribe, please see
http://www.palm.com/devzone/mailinglists.html