Why dont dlang check NullPointer?

zhmt via Digitalmars-d digitalmars-d at puremagic.com
Mon Mar 30 20:58:32 PDT 2015


Especially working with fibers, ability to catch 
NullPointerException is more important. If a NullPointerException 
is caught , only one fiber terminates, otherwise, the whole 
server crashes.

If the server is something like 
webserver(stateless),multi-process is ok. But I am aiming to 
develope a mmorpg server, it is stateful, so it is not allowed to 
crash entirely.

Maybe the solution is to make use of  a script engine (such as 
lua), but the benefit of choosing dlang is lost.


More information about the Digitalmars-d mailing list