[Issue 4484] Warning for unreachable code in scope statements is too confusing

2012-12-20 Thread d-bugmail
http://d.puremagic.com/issues/show_bug.cgi?id=4484


Andrej Mitrovic andrej.mitrov...@gmail.com changed:

   What|Removed |Added

 CC||andrej.mitrov...@gmail.com


--- Comment #2 from Andrej Mitrovic andrej.mitrov...@gmail.com 2012-12-20 
14:16:24 PST ---
I'm not seeing the warning in 2.060. Fixed?

-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
--- You are receiving this mail because: ---


[Issue 4484] Warning for unreachable code in scope statements is too confusing

2012-12-20 Thread d-bugmail
http://d.puremagic.com/issues/show_bug.cgi?id=4484


Jonathan M Davis jmdavisp...@gmx.com changed:

   What|Removed |Added

 Status|NEW |RESOLVED
 Resolution||FIXED


-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
--- You are receiving this mail because: ---


[Issue 4484] Warning for unreachable code in scope statements is too confusing

2010-11-15 Thread d-bugmail
http://d.puremagic.com/issues/show_bug.cgi?id=4484


Jonathan M Davis jmdavisp...@gmx.com changed:

   What|Removed |Added

   Keywords||rejects-valid
   Severity|enhancement |normal


--- Comment #1 from Jonathan M Davis jmdavisp...@gmx.com 2010-11-15 01:56:17 
PST ---
scope(failure) assert(0);

would be another nice thing to be able to do - particularly when trying to
ensure that a function is nothrow (but it results in the error about a
statement being unreachable). Putting the whole function in a try-catch block
to do that is definitely uglier.

In any case, I think that I'm promoting this to a normal bug rather than an
enhancement request. The fact that scope statements translate into try-catch
blocks is an implementation detail which shouldn't leak into error messages.
While it makes good sense to implement scope that way, I'm not sure that
there's anything really requiring that it be implemented that way, and the
errors about unreachable code make various useful constructs illegal when they
really shouldn't be.

-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
--- You are receiving this mail because: ---