Memory safe in D
Walter Bright
newshound2 at digitalmars.com
Wed Mar 13 06:07:32 UTC 2024
On 3/12/2024 4:42 PM, cc wrote:
> And Objective-C, in which calling methods on (er, sending messages to) null
> references is not only allowed, it's just good manners. Coming to D from that
> was a bit of a shock with the sudden segfaults, though eventually we adapt.
> Still, it would be nice to have the option of Errors thrown rather than a
> straight crash. I assume this is for efficiency reasons, but couldn't a
> compiler flag be a consideration? Debuggers are nice but it's still an extra,
> external step.
One some platforms, seg faults are intercepted by the D runtime and a stack
trace is emitted.
More information about the Digitalmars-d
mailing list