<div class="gmail_quote">>> On Tue, May 15, 2012 at 9:16 PM, Alex Rønne Petersen <span dir="ltr"><<a href="mailto:alex@lycus.org" target="_blank">alex@lycus.org</a>></span> wrote:</div><div class="gmail_quote">
>> Nope. write* perform GC allocation.<div><br></div><div>1. Give me the top 3 use cases, where GC allocation is intolerable when writing to an output stream.</div><div>2. writef and friends could get cousins like nogcwritef and nogcwritefln. (see comments beloaw)</div>
<div>3. GC can be turned off and gc-allocated memory can be GC.freeed.</div><div>4. printf could get wrapped to take d-strings by malloc-ing new buffers for the c-strings if necessary.</div><div><br></div></div><div class="im">
>> On Tue, May 15, 2012 at 9:16 PM, Alex Rønne Petersen <span dir="ltr"><<a href="mailto:alex@lycus.org" target="_blank">alex@lycus.org</a>></span> wrote:</div>>> You're assuming everyone uses Phobos. This is not the case.<span class="HOEnZb"><font color="#888888"><br>
</font></span><div><br></div><div>I'm assuming everyone is sane, because Phobos is called "the standard library" for a damned good reason. For those who don't - they're welcome to use whatever they want and convert d-strings to c-strings any way they choose if necessary.</div>
<div><br></div>-- <br>Bye,<br>Gor Gyolchanyan.<br>