Behaviour of append (~=)

Lionello Lunesu lionello at lunesu.remove.com
Tue May 30 11:14:07 PDT 2006


> It is very common to append data that you don't own:
> a ~= "static read-only string constant";
> or
> a ~= itoa(7); // May refer to static string data.

I can see how that would cause problems if it wouldn't copy : )

Thanks for the example.

L. 





More information about the Digitalmars-d-learn mailing list