At 02:28 PM 8/14/2006, Reece Dunn wrote:
I was thinking of Object::free(), and it isn't called in the destructor.

        Ah, but you'd handle that with your wrapper around Object.

Where an Object gets used today, you could replace this with a new class (you called it ObjectRef, but whatever) that would be a smart pointer to an Object...


I know that there are shallow copies in there as I have tried moving the
logic of obj.free() into the destructor and failed!

        If you add reference counting, you can solve this.


The compilers that will have a problem with bool are those that
are 8-10 years old or older.

        Seems like a good argument to me then...


Leonard

---------------------------------------------------------------------------
Leonard Rosenthol                            <mailto:[EMAIL PROTECTED]>
Chief Technical Officer                      <http://www.pdfsages.com>
PDF Sages, Inc.                              215-938-7080 (voice)
                                             215-938-0880 (fax)

_______________________________________________
poppler mailing list
[email protected]
http://lists.freedesktop.org/mailman/listinfo/poppler

Reply via email to