[Joke] C++ and D namings

John Colvin john.loughran.colvin at gmail.com
Tue Jan 26 09:49:01 UTC 2021


On Saturday, 23 January 2021 at 05:45:13 UTC, Walter Bright wrote:
> 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:
>>>> [...]
>>>
>>> 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.

For a bunch of cases, yes. For actual "throw new Error" there 
aren't many options.


More information about the Digitalmars-d mailing list