[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: memory management



Keith Lucas wrote:

> >Changing the type of objects at runtime, as in dynamic_cast<> or
> >something else? Arrays of different objects is basic OOP, isn't it?
> 
> Not in C++ - without some tomfoolery foo[2] can't be a different type from
> foo[3] if they're both objects - it's easy if they're pointers to objects.

Of course, I assumed an array of references or pointers.

> >Does he talk about soft vs hard references and circular references? Does
> >the book talk about creation patterns, like pluggable factories and
> >metaclasses objects?
> 
> Yes.

Is there any example of code using their reference count techniques in
circular referencing structures (maybe your code?)? Examples of soft and
hard refcount implementation?

-- 
Pierre Phaneuf
Ludus Design, http://ludusdesign.com/
"First they ignore you. Then they laugh at you.
Then they fight you. Then you win." -- Gandhi