core dumped when run this simple D program.

Fox linuxl4 at sohu.com
Mon Aug 26 07:42:27 UTC 2024


On Monday, 26 August 2024 at 07:17:58 UTC, Richard (Rikki) Andrew 
Cattermole wrote:
> Classes in D are heap objects, you have to allocate them.
>
> ``myClas_1 c1 = new myClas_1;``
>
> The default is null.


thank you very much!



More information about the Digitalmars-d-learn mailing list