Why does the example on page 8 of TDPL work without importing std.algorithm for splitter?

Bryce Watkins bwatkinsnz at gmail.com
Mon Jan 3 08:56:52 PST 2011


Hi all,

Can someone explain this to me please?

I have been trying to understand why you would use splitter over split 
between the examples on page 8 and page 12, as an errata has been 
posted: http://erdani.com/tdpl/errata/index.php?title=Main_Page which 
states that splitter should be used for better efficiency.

However when I use splitter in my code it works without having imported 
std.algorithm.

Thanks,
Bryce.


More information about the Digitalmars-d-learn mailing list