Re: Bug #64910: Line number of $e = new Exception vs. line number of throw $e
| From: | Adam Harvey | Date: | Fri, 24 May 2013 00:38:56 +0000 |
| Subject: | Re: Bug #64910: Line number of $e = new Exception vs. line number of throw $e | ||
| References: | 1 2 3 4 | Groups: | php.internals |
| Request: | Send a blank email to internals+get-67473@lists.php.net to get a copy of this message | ||
On 23 May 2013 17:14, Stas Malyshev <smalyshev@sugarcrm.com> wrote:
> Hi!
>
>>> the code does "throw new", it is always useful. So how you would
>>> propose
>>> to solve this?
>>
>> rethrow $e;
>
> Yes, this is definitely an option, but requires a new keyword.
We could use a C++ style throw; as an implicit rethrow.
Adam