Struct with default ctor (Was: [dmd-beta] dmd 2.064 beta take 2)
Walter Bright
newshound2 at digitalmars.com
Sun May 19 18:15:17 PDT 2013
On 5/19/2013 5:23 PM, John Colvin wrote:
> On Sunday, 19 May 2013 at 20:45:39 UTC, Walter Bright wrote:
>> On 5/19/2013 1:03 PM, Maxim Fomin wrote:
>>> I think there is difference between catching exception and saving
>>> data which you have typed for some period and letting harware
>>> "check" the exception for you meanwile loosing your work.
>>
>> You can catch seg faults. It's easier on Windows, but it's doable on Linux.
>
> What's the rational for not doing this by default in D? Wouldn't a
> MemoryAccessError or similar be better than crashing out with SIGSEGV ?
Writing a seg fault handler under Linux has a large number of weird constraints.
> I have
> no idea about the consequences of this (other than tempting people to catch a
> segfault when they shouldn't, which is pretty much always).
At some point, all the scaffolding and workarounds to try to prevent programmers
from having to deal with the underlying reality of how the system works is not
appropriate for a systems programming language.
More information about the Digitalmars-d
mailing list