Ahhh... Thank you !  Here is the detailed C++ blueprint that's been hitherto alluded 
to!

I assume that all these problems arise from the way in which the C++ compiler was 
written.
I assume there's nothing conceptually different between a C++ class and an ordinary 
struct, in that a local class instance could be
stored on the stack if the compiler was written that way.

The other things you wouldn't do normally because you have no Heap -> new and delete 
would be like malloc and free...

But if you were quite insane I suppose you could allocate some feature memory and cast 
it into a class instance...

Thanks for the additional tip -> I have ot be very careful not to use up my stack.
- Jeff

"William F. Weiher" wrote:

> Sorry, I am unable to include any code samples. The code is the property of
> the company I work for. Basically, if you write without using any of the c++
> extensions (classes, new, delete, etc) you get the extended error checking
> of c++ without any problems. If you use classes, do not use virtual
> functions since they use globals. Be very careful with class inheritance
> since not having the destructor a virtual function may cause problems. Be

> skeptical of any of the c++ extensions, they are oftem memory hogs. (a few
> class objects as local variables can eat up your stack space in a
> remarkabley short time). You can use these features if you are carful in
> your testing. Look at the assemply code produced if necessary.
>
> -----Original Message-----
> From: [EMAIL PROTECTED]
> [mailto:[EMAIL PROTECTED]]On Behalf Of nabil
> Sent: Wednesday, February 07, 2001 13:06
> To: Palm Developer Forum
> Subject: Re: c++ shared library
>
> > (but then I've been doing this for 35 years, it is probably something that
> > the novice might want to stay away from)
>
> So can the old guru share his knowledge with a poor c++ newbie.
> I also want to become a Jedi.
> And I'm sure that many people on this list want to.
>
> Give us a code snippet, to study.
>
> Thanks
>
> --
> For information on using the Palm Developer Forums, or to unsubscribe,
> please see http://www.palmos.com/dev/tech/support/forums/
>
> --
> For information on using the Palm Developer Forums, or to unsubscribe, please see 
>http://www.palmos.com/dev/tech/support/forums/


-- 
For information on using the Palm Developer Forums, or to unsubscribe, please see 
http://www.palmos.com/dev/tech/support/forums/

Reply via email to