Function prototype extension proposal
| From: | Andrey Hristov | Date: | Sat, 19 Jul 2003 19:07:11 +0000 |
| Subject: | Function prototype extension proposal | ||
| Groups: | php.internals | ||
| Request: | Send a blank email to internals+get-3495@lists.php.net to get a copy of this message | ||
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