Re: [PHP4BETA] OO Destructors
| From: | Shannon Weyrick | Date: | Thu, 12 Aug 1999 13:46:29 +0000 |
| Subject: | Re: [PHP4BETA] OO Destructors | ||
| References: | 1 | Groups: | php.version4 |
| Request: | Send a blank email to php-version4+get-3371@lists.php.net to get a copy of this message | ||
On Thu, 12 Aug 1999, you wrote:
> Nearly done on this one.
>
> On-the-sly duplication of an objects data area to duplicate the object does
> concern me. If we don't have destructors could we at least have warnings
> that can be turned on to tell us when this happens (so we can change the
> code to use the & like we intended). I'm scared to think of the ammount of
> times I've assigned one object to another variable only to have two
> independant copies without realising it.
>
> Sam
>
>
For what it's worth, I second this idea - having it as a warning would be very
handy. Spent a couple hours tracking this exact "problem" down in my code...
shannon weyrick (weyrick@roadsend.com),
sysadmin/programmer