11/12/2012 2:14 PM, Tobias Pankrath пишет:
On Monday, 12 November 2012 at 09:16:54 UTC, Dmitry Olshansky wrote:
11/11/2012 9:34 PM, bioinfornatics пишет:
Hi,
I wrote a fasta parser for biology computing
http://pastebin.geany.org/yheQN/

I would like to get your experience to know if the writer could be
better. The given parser use MmFile and Phobos range.

fasta specification format => http://en.wikipedia.org/wiki/FASTA_format


I'd like to spread the word of the proper toString signature that
doesn't need appender.

void toString(scope delegate(const(char)[]) sink) const{
 //same code, but replace fasta.put(x) with sink(x)
}

Is there any documentation for this signature?

Now that could be why nobody uses it :)

This hole in documentation must be filled because it is a solution to allocation happiness of toString. AFAIK it supposed to be the new way of string conversion and the old one eventually deprecated.

--
Dmitry Olshansky

Reply via email to