Re: Reading by character and by line from stdin

2011-08-26 Thread Andrej Mitrovic
to!(T[]) is awesome. I've ported this little C thingy: sscanf(oneline, "%f %f %f %f %f", &x, &y, &z, &u, &v); to this: to!(float[])(line.split); Can't get easier than that!

Re: Multiple subtyping

2011-08-26 Thread Andrej Mitrovic
with doesn't work properly with alias this, I've already filed this in bugzilla though.

Re: d2 file input performance

2011-08-26 Thread bearophile
Steven Schveighoffer: > In fact, it would probably be faster. I suggest the OP to keep us updated on this matter. And later after some time, if no solutions are found, to bring the issue to the main D newsgroup and to Bugzilla too. This is a significant issue. Bye, bearophile

Re: d2 file input performance

2011-08-26 Thread Steven Schveighoffer
On Fri, 26 Aug 2011 13:43:23 -0400, Christian Köstlin wrote: Hi guys, i started the thread: http://stackoverflow.com/questions/7202710/fastest-way-of-reading-bytes-in-d2 on stackoverflow, because i ran into kind of a problem. i wanted to read data from a file (or even better from a st

d2 file input performance

2011-08-26 Thread Christian Köstlin
Hi guys, i started the thread: http://stackoverflow.com/questions/7202710/fastest-way-of-reading-bytes-in-d2 on stackoverflow, because i ran into kind of a problem. i wanted to read data from a file (or even better from a stream, but lets stay with file), byte-by-byte. the whole thing was p