scope() statements and return
Shammah Chancellor via Digitalmars-d
digitalmars-d at puremagic.com
Sat Oct 4 16:51:43 PDT 2014
On 2014-10-04 21:44:43 +0000, Andrei Alexandrescu said:
> On 10/3/14, 8:01 PM, deadalnix wrote:
>> On Friday, 3 October 2014 at 19:35:21 UTC, Andrei Alexandrescu wrote:
>>> I guess I'm convinced it adds more complication than expressiveness!
>>>
>>
>> True for return, but throw is a stupid limitation( as it do not prevent
>> the scope to throw at all, simply forc to hide it, which is only worse).
>
> Yah, nonlocal returns are odd but throw should be perfectly fine (and
> good to have). -- Andrei
They were removed because they stop the propigation of Errors when and
if they were to throw. This was already discussed quite a bit months
ago. My original message was not intended to respawn the debate.
Here's the dbug: https://issues.dlang.org/show_bug.cgi?id=11574
I'm not sure why it's still open actually.
-Shammah
More information about the Digitalmars-d
mailing list