Re: [PHP-DEV] Catchable - marking methods just like static?

2012-04-04 Thread Rasmus Lerdorf
On 04/04/2012 02:42 AM, Alan Knowles wrote: > Rather than this hap-hazard approach to ensuring code is correctly > handling error conditions would it not be far better for the engine to > be advising of situations where this may be occurring before they > occur.. in the same way undefined variable

Re: [PHP-DEV] Catchable - marking methods just like static?

2012-04-04 Thread Alan Knowles
Reply inline.. On Wednesday, April 04, 2012 10:29 AM, Adam Harvey wrote: On 4 April 2012 10:02, Alan Knowles wrote: PHP enforces rules like $this can not be used in a method marked 'static'. So why not flag methods (and internal functions) with a flag that indicates they can throw things. Since

Re: [PHP-DEV] Catchable - marking methods just like static?

2012-04-04 Thread Alan Knowles
response below... On Wednesday, April 04, 2012 10:59 AM, Rasmus Lerdorf wrote: On 04/03/2012 07:02 PM, Alan Knowles wrote: I just saw Daniel changing some of the PEAR classes to use Exceptions, and it's pretty clear that this could cause havoc with the end users. The problem being that there is