note 72567 added to language.exceptions

From: Date: Wed, 24 Jan 2007 17:52:17 +0000
Subject: note 72567 added to language.exceptions
Groups: php.notes 
Request: Send a blank email to php-notes+get-122146@lists.php.net to get a copy of this message
Further to dexen at google dot me dot up with "use destructors to perform a cleanup in case of exception". The fact that PHP5 has destructors, exception handling, and predictable garbage collection (if there's a single reference in scope and the scope is left then the destructor is called immediately) allows for the use of the RAII idiom. http://en.wikipedia.org/wiki/Resource_Acquisition_Is_Initialization and my own http://www.hackcraft.net/RAII/ describe this. ---- Server IP: 69.147.83.197 Probable Submitter: 83.70.80.115 ---- Manual Page -- http://www.php.net/manual/en/language.exceptions.php Edit -- https://master.php.net/note/edit/72567 Del: integrated -- https://master.php.net/note/delete/72567/integrated Del: useless -- https://master.php.net/note/delete/72567/useless Del: bad code -- https://master.php.net/note/delete/72567/bad+code Del: spam -- https://master.php.net/note/delete/72567/spam Del: non-english -- https://master.php.net/note/delete/72567/non-english Del: in docs -- https://master.php.net/note/delete/72567/in+docs Del: other reasons-- https://master.php.net/note/delete/72567 Reject -- https://master.php.net/note/reject/72567 Search -- https://master.php.net/manage/user-notes.php

« previous php.notes (#122146) next »