Martin Roth (roth++at++ifi.unizh.ch)
Sat, 25 Feb 1995 10:45:36 +0100
as far as I know the size_t argument is implicitly passed by the compiler.
My classes are at least as complex as your "blah" class ;-) and it always
worked fine. It also works under derivation and inheritance.
This in fact isn't surprising at all because I think that the C++ new operator
in the end uses malloc to allocate a chunk of memory of size size_t. It doesn't
matter if this chunk is allocated through malloc or pfMalloc.
I have only new operators returning type void *. I don't know if it's necessary
but I think so. And the conversion form void * to Object * is done automatically
when new is invoked.
And in answering other postings I never had any problems with the dynamic
binding through virtual tables. I wouldn't see why. As far as I know the
shared memory of Performer is allocated as early as pfInit is called and
I'm only accessing it through related (sproc'ed) processes. That's why objects
in shared memory are supposed to behave the same as if they were allocated
on the heap.
Cheers
Martin
_______________________________________________________________________________
/| /|) S. H. Martin Roth
/ |/ |\OTH Student in Computer Science
ETHZ, Swiss Federal Institute of Technology Zuerich email: sroth++at++iiic.ethz.ch
UniZh, University of Zuerich email: roth++at++ifi.unizh.ch
This archive was generated by hypermail 2.0b2 on Mon Aug 10 1998 - 17:51:00 PDT