Memory safe in D

Alex akornilov.82 at mail.ru
Mon Mar 11 10:21:43 UTC 2024


On Monday, 11 March 2024 at 08:49:35 UTC, Sergey wrote:
> On Monday, 11 March 2024 at 08:16:13 UTC, Alex wrote:
>> Hello,
>> int main()
>> {
>> 	A a;
>> 	a.run();
>> 	writeln("Hello, world!");
>> 	return 0;
>> }
>> ```
>
> You need
> ```
> A a = new A();
> ```

No. It was test how D handle uninitialized variables.


More information about the Digitalmars-d mailing list