On Friday, 24 February 2017 at 07:38:04 UTC, Mike Parker wrote:
On Friday, 24 February 2017 at 04:22:17 UTC, Jonathan Marler
wrote:
I discovered the .capacity property of arrays. I don't know
why I've never seen this but it looks like this is how readln
is recovering this seemingly lost pe
On Friday, 24 February 2017 at 04:22:17 UTC, Jonathan Marler
wrote:
I discovered the .capacity property of arrays. I don't know
why I've never seen this but it looks like this is how readln
is recovering this seemingly lost peice of data. This does
have an odd consequence though, if you p
On Friday, 24 February 2017 at 03:45:35 UTC, Nick Sabalausky
(Abscissa) wrote:
On 02/23/2017 09:43 PM, Jonathan Marler wrote:
I can't figure out how to make use of the full capacity of
buffers that
are allocated by readln. Take the example code from the
documentation:
// Read lines from
On 02/23/2017 09:43 PM, Jonathan Marler wrote:
I can't figure out how to make use of the full capacity of buffers that
are allocated by readln. Take the example code from the documentation:
// Read lines from $(D stdin) and count words
void main()
{
char[] buf;
I can't figure out how to make use of the full capacity of
buffers that are allocated by readln. Take the example code from
the documentation:
// Read lines from $(D stdin) and count words
void main()
{
char[] buf;
size_t words = 0;
while (!stdin.eof)