Zapping a dynamic string

Cecil Ward cecil at cecilward.com
Tue Jul 4 17:01:42 UTC 2023


I have a mutable dynamic array of dchar, grown by successively 
appending more and more. When I wish to zap it and hand the 
contents to the GC to be cleaned up, what should I do? What 
happens if I set the .length to zero?


More information about the Digitalmars-d-learn mailing list