On Saturday, 9 November 2019 at 22:03:03 UTC, Ferhat Kurtulmuş wrote:
On Thursday, 31 October 2019 at 03:56:56 UTC, lili wrote:
Hi:
   why writeln need GC?

Upon this post, I thought writing a gc-free writeln would be a good learning practice. Although it is not a feature-complete one, it was a lot of fun to do it :)

https://github.com/aferust/stringnogc

If you wanted to follow the standard of D then you didn't need a string type. Since it doesn't really exist in D.

string is just an alias for immutable(char)[]

So what you want is to use this:
https://dlang.org/phobos/std_container_array.html

Reply via email to