Why does nobody seem to think that `null` is a serious problem in D?
    Kagamin 
    spam at here.lot
       
    Tue Nov 20 15:38:40 UTC 2018
    
    
  
On Monday, 19 November 2018 at 21:23:31 UTC, Jordi Gutiérrez 
Hermoso wrote:
> When I was first playing with D, I managed to create a segfault 
> by doing `SomeClass c;` and then trying do something with the 
> object I thought I had default-created, by analogy with C++ 
> syntax.
D is more similar to Java here and works like languages with 
reference types - Java, C#, Python, Ruby, JavaScript. Also AFAIK 
in C++ objects are garbage-created by default, so you would have 
a similar problem there. To diagnose crashes on linux you can run 
your program under gdb.
    
    
More information about the Digitalmars-d-learn
mailing list