Jim Helman (jimh++at++surreal)
Wed, 20 Dec 95 19:13:14 -0800
For a subclass foo of pfObject:
new(arena) foo; == allocate foo from arena
new foo; == allocate foo from pfGetSharedArena()
As for pfMemory::new():
new(nbytes, arena) pfMemory; == pfGetMemory(pfMalloc(nbytes, arena));
new(nbytes) pfMemory; == pfGetMemory(pfMalloc(nbytes, pfGetSharedArena()));
new pfMemory; == bogus, no malloc size provided
Note the first argument in the declaration in the header files,
"size_t s," is created implicitly by C++ from the size of the object
and is not visible to the C++ application.
rgds,
-jim helman
jimh++at++surreal.asd.sgi.com
415/933-1151
This archive was generated by hypermail 2.0b2 on Mon Aug 10 1998 - 17:52:10 PDT