[Joke] C++ and D namings

Walter Bright newshound2 at digitalmars.com
Sat Jan 23 05:45:13 UTC 2021


On 1/22/2021 7:08 AM, John Colvin wrote:
> On Friday, 22 January 2021 at 09:28:47 UTC, Walter Bright wrote:
>> On 1/21/2021 3:12 AM, John Colvin wrote:
>>> It's worth saying that we do depend on being able to catch Errors at 
>>> Symmetry*, our situation is a little unusual though.
>>>
>>> * "we are happy when a thrown Error is caught in some limited circumstances" 
>>> not "our program is incorrect if any particular thrown Error is not caught"
>>
>> I recommend considering replacing it with Exception.
> 
> The purpose is to catch unexpected Errors from any source, including accidental 
> bounds violations, code deep in 3rd party dependencies etc. It doesn't matter if 
> we miss some, but it's nice to catch them when we can.

You should be able to register your own handler to intercept those before an 
Error gets thrown.


More information about the Digitalmars-d mailing list