Passing a string by reference

Alexander Zhirov azhirov1991 at gmail.com
Tue Nov 8 12:53:57 UTC 2022


Thanks for answers!

On Tuesday, 8 November 2022 at 12:43:47 UTC, Adam D Ruppe wrote:
> You should almost never use `ref string`. Just use plain 
> `string`.

So it's always working with thick pointers?

> 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?


More information about the Digitalmars-d-learn mailing list