Example: wc

Alex Parrill via Digitalmars-d digitalmars-d at puremagic.com
Mon Nov 23 06:24:39 PST 2015


On Monday, 23 November 2015 at 14:10:35 UTC, Chris wrote:
>
> The code doesn't look up to date and maybe it's been replaced 
> with a more up to date example (i.e. with range chaining). It 
> uses ulong instead of size_t. I dunno, maybe it should be 
> dropped completely.

ulong is appropriate here; the maximum word count should not be 
dependent on the system's memory limits, since it's streaming 
from an (arbitrary large) file.


More information about the Digitalmars-d mailing list