D as a betterC a game changer ?
Walter Bright
newshound2 at digitalmars.com
Mon Dec 25 20:36:56 UTC 2017
On 12/25/2017 1:25 AM, Dan Partelly wrote:
> 1. Exceptions can be done "you do not use it, you do not pay for them". Also,
> compiler switches to diable exceptions totally exist in most compilers.
Those switches exist because it is not free.
> 3. In several extensive C programs I seen, expception handling was used. A poor
> man's version implemented with setjmp/longjmp, but neverthless was there. And it
> was very well used, it was not code done by somone who learned a gimmick and
> abused it everywhere. It was the sanest way to handle errors in that portion of
> the code. The use was confined where needed.
You can use setjmp/longjmp in betterC. After all, they are just library functions.
More information about the Digitalmars-d
mailing list