Trying to compile sample from The D Programming Language book.

Jesus Alvarez jeezusjr at gmail.com
Sun Apr 3 00:38:30 PDT 2011


I got it to compile adding std.regex to split to make it:

auto words = std.regex.split (sentence, regex("[ \t,.;:?]+"));

So now my question is, is this an error in the book? The errata doesn't
mention anything about this section. Why do I have to prepend std.regex?

Thanks!
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.puremagic.com/pipermail/digitalmars-d-learn/attachments/20110403/3efa0d16/attachment.html>


More information about the Digitalmars-d-learn mailing list