Why dont dlang check NullPointer?

deadalnix via Digitalmars-d digitalmars-d at puremagic.com
Thu Mar 26 21:13:00 PDT 2015

On Friday, 27 March 2015 at 03:59:30 UTC, zhmt wrote:
>> The best way to do that is to separate the server modules into 
>> independent processes. Then if one crashes, the others keep 
>> running without fear of corruption.
>> So instead of server modules, try doing mini servers that 
>> communicate with the main server. This is how a lot of newer 
>> programs are written because of the reliability and security 
>> benefits it offers.
> But this will make the developement more difficult for me, or 
> not acceptable.
> Is there any other ways?


There is a hook in the runtime to enable this if you want.

BUT, null pointer exception or not, Adam is right. Have your 
stuff run in multiple process that you can restart. This is more 
reliable, this is more secure, this is easier to update without 
downtime, and so on... This is far superior solution for server 

More information about the Digitalmars-d mailing list