Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:21247 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 76644 invoked by uid 1010); 16 Dec 2005 14:18:19 -0000 Delivered-To: ezmlm-scan-internals@lists.php.net Delivered-To: ezmlm-internals@lists.php.net Received: (qmail 76627 invoked from network); 16 Dec 2005 14:18:19 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 16 Dec 2005 14:18:19 -0000 X-Host-Fingerprint: 84.92.162.233 scuzzy.plus.com Linux 2.5 (sometimes 2.4) (4) Received: from ([84.92.162.233:33856] helo=reverseorder.net) by pb1.pair.com (ecelerity 2.0 beta r(6323M)) with SMTP id 4C/D8-14561-AACC2A34 for ; Fri, 16 Dec 2005 09:18:18 -0500 Received: from reverseorder ([127.0.0.1] helo=reverseorder.net) by reverseorder.net with esmtp (Exim 3.36 #1 (Debian)) id 1EnGPC-00062U-00 for ; Fri, 16 Dec 2005 14:17:54 +0000 To: "PHP" Reply-To: scuzzy@reverseorder.net Date: Fri, 16 Dec 2005 14:17:54 +0000 Message-ID: <20051216141608.M76819@reverseorder.net> X-Mailer: Open WebMail 2.41 20040926 X-OriginatingIP: 82.110.77.114 (scuzzy) MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Subject: exceptions in the destructor From: scuzzy@reverseorder.net ("Daine Mamacos") Is there any reason why one is not allowed to throw an exception in the destructor of a class? I mean, it makes sense, considering this is not always the final step of code, and it is usually used for finalising things, and it would be a good idea to know if anything goes wrong at that stage. Otherwise is there any compromise one can use to "emulate" this feature? Daine Mamacos. -- random signature