On 11/8/22 04:53, Alexander Zhirov wrote:
> On Tuesday, 8 November 2022 at 12:43:47 UTC, Adam D Ruppe wrote:
>> Just use plain `string`.
>
> So it's always working with thick pointers?
Yes, D's arrays are fat pointers. strings are arrays of immutable(char).
>> nope, an object isn't created there at all. you should use `new C`.
>
> If I create just `A c`, then is it an empty pointer?
Yes. Classes are reference types in D. Class variables are implemented
as pointers. Their default value is null.
Ali