Re: Refcounted object semantics

From: Henrik Nordstrom <henrik@dont-contact.us>
Date: Sat, 02 Sep 2006 14:23:58 +0200

lör 2006-09-02 klockan 17:59 +0800 skrev Adrian Chadd:

> The big thing that brought along this bug was the semantic change
> when Duane moved the fwdstate code over to use the refcounted code.
> My fledgling C++ knowledge tells me that the destructor isn't the
> place to put this - there's no real explicit way to say "I really,
> honestly want you to kick off the forwarding completion code *now*"

Agreed. refcounting is nice, but things like FwdState needs to have
explicit invalidation in addition to the destructor. Actually true for
most objects actually doing something actively and not only storing some
value.

Regards
Henrik

Received on Sat Sep 02 2006 - 06:24:06 MDT

This archive was generated by hypermail pre-2.1.9 : Sun Oct 01 2006 - 12:00:06 MDT