Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:3495 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 16391 invoked from network); 19 Jul 2003 19:06:15 -0000 Received: from unknown (HELO jedi.webgate.bg) (212.50.2.189) by pb1.pair.com with SMTP; 19 Jul 2003 19:06:15 -0000 Received: (qmail 30628 invoked from network); 19 Jul 2003 19:06:30 -0000 Received: from nik.office.webgate.bg (HELO andreywin) (192.168.1.22) by jedi.webgate.bg with SMTP; 19 Jul 2003 19:06:30 -0000 Message-ID: <00ad01c34e28$f55347c0$1601a8c0@andreywin> To: Date: Sat, 19 Jul 2003 22:07:11 +0300 MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit X-Priority: 3 X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook Express 6.00.2720.3000 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2600.0000 Subject: Function prototype extension proposal From: andrey@webgate.bg ("Andrey Hristov") Hi, today I saw that the new SQLite extension throws exceptions. In the current state the syntaxis of the prototypes in .c files is : proto return_type function_name([param_type param_name]*) As we know, from v5, PHP functions may throw exceptions. Therefore I propose to extend the syntaxis of function prototype with suffix : throws [exception_name] If more than one type of exception is throwed a comma separated list should be specified . Example : proto array func_name(int param) throws FuncNameException1, FuncNameException2 Comments? Regards, Andrey