wc.d program from the website
Peter Alexander
peter.alexander.au at gmail.com
Mon May 27 03:34:24 PDT 2013
On Monday, 27 May 2013 at 10:26:37 UTC, Russel Winder wrote:
> Does the code at http://dlang.org/wc.html represent the
> canonical D code
> style?
>
> I note that:
>
> rdmd wc.d < wc.d
>
> fails to behave analogously to how:
>
> /usr/bin/wc < wc.d
>
> does.
I'm pretty sure canonical wc in D would use ranges now (spliter,
byLine, walkLength). And yes, you are right about how it isn't
very Unix-like with regards to how it handles the input.
More information about the Digitalmars-d
mailing list