Jump to page: 1 2
Thread overview
[Issue 12645] assertThrown!Error and assertNotThrown!Error should be nothrow
Apr 25, 2014
Andrej Mitrovic
Apr 25, 2014
Andrej Mitrovic
Apr 25, 2014
Kenji Hara
Apr 25, 2014
Kenji Hara
Apr 25, 2014
Kenji Hara
Apr 25, 2014
Kenji Hara
Dec 17, 2022
Iain Buclaw
April 25, 2014
https://issues.dlang.org/show_bug.cgi?id=12645

Andrej Mitrovic <andrej.mitrovich@gmail.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
         Depends on|                            |12646

--
April 25, 2014
https://issues.dlang.org/show_bug.cgi?id=12645
Issue 12645 depends on issue 12646, which changed state.

Issue 12646 Summary: Catching Errors should imply nothrow https://issues.dlang.org/show_bug.cgi?id=12646

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
         Resolution|---                         |INVALID

--
April 25, 2014
https://issues.dlang.org/show_bug.cgi?id=12645

Andrej Mitrovic <andrej.mitrovich@gmail.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
         Resolution|---                         |INVALID

--- Comment #1 from Andrej Mitrovic <andrej.mitrovich@gmail.com> ---
This is invalid since Exception is not derived from Error, so catching Errors will not catch those Exceptions.

--
April 25, 2014
https://issues.dlang.org/show_bug.cgi?id=12645

Kenji Hara <k.hara.pg@gmail.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|RESOLVED                    |REOPENED
         Depends on|12646                       |12647
         Resolution|INVALID                     |---

--- Comment #2 from Kenji Hara <k.hara.pg@gmail.com> ---
This is a possible enhancement, blocked by issue 12647.

--
April 25, 2014
https://issues.dlang.org/show_bug.cgi?id=12645

monarchdodra@gmail.com changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|REOPENED                    |RESOLVED
                 CC|                            |monarchdodra@gmail.com
         Resolution|---                         |INVALID

--- Comment #3 from monarchdodra@gmail.com ---
(In reply to Kenji Hara from comment #2)
> This is a possible enhancement, blocked by issue 12647.

12647 was made invalid. assertNotThrown!Error Really has no reason to be nothrow, since it can legally throw exceptions.

--
April 25, 2014
https://issues.dlang.org/show_bug.cgi?id=12645

--- Comment #4 from Kenji Hara <k.hara.pg@gmail.com> ---
(In reply to monarchdodra from comment #3)
> (In reply to Kenji Hara from comment #2)
> > This is a possible enhancement, blocked by issue 12647.
> 
> 12647 was made invalid. assertNotThrown!Error Really has no reason to be nothrow, since it can legally throw exceptions.

I agree with that the issue 12646 is invalid, but the newly filed issue 12647 is different thing.

--
April 25, 2014
https://issues.dlang.org/show_bug.cgi?id=12645

monarchdodra@gmail.com changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|RESOLVED                    |REOPENED
         Resolution|INVALID                     |---

--- Comment #5 from monarchdodra@gmail.com ---
(In reply to Kenji Hara from comment #4)
> (In reply to monarchdodra from comment #3)
> > (In reply to Kenji Hara from comment #2)
> > > This is a possible enhancement, blocked by issue 12647.
> > 
> > 12647 was made invalid. assertNotThrown!Error Really has no reason to be nothrow, since it can legally throw exceptions.
> 
> I agree with that the issue 12646 is invalid, but the newly filed issue 12647 is different thing.

Ah right. I didn't realize the inference was wrong. I thought we were just asking for "always" nothrow.

--
April 25, 2014
https://issues.dlang.org/show_bug.cgi?id=12645

Kenji Hara <k.hara.pg@gmail.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
         Depends on|                            |12647

--
April 25, 2014
https://issues.dlang.org/show_bug.cgi?id=12645

Kenji Hara <k.hara.pg@gmail.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
         Depends on|12647                       |

--
December 17, 2022
https://issues.dlang.org/show_bug.cgi?id=12645

Iain Buclaw <ibuclaw@gdcproject.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Priority|P1                          |P3

--
« First   ‹ Prev
1 2