I reported the error to the author. Thanks guys!<br><br><div class="gmail_quote">On Sun, Apr 3, 2011 at 3:34 AM, spir <span dir="ltr"><<a href="mailto:denis.spir@gmail.com">denis.spir@gmail.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;"><div class="im">On 04/03/2011 09:38 AM, Jesus Alvarez wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
I got it to compile adding std.regex to split to make it:<br>
<br>
auto words = std.regex.split (sentence, regex("[ \t,.;:?]+"));<br>
<br>
So now my question is, is this an error in the book? The errata doesn't<br>
mention anything about this section.<br>
</blockquote>
<br></div>
If the TDPL code does not prefix split then, yes, it is an error. (In fact, there was maybe no regex split at the time it was written.) You may add it at the errata page mentionned by Jonathan.<div class="im"><br>
<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
 Why do I have to prepend std.regex?<br>
</blockquote>
<br></div>
How can the compiler guess you mean std.regex.split; and not std.string.split, if you don't tell it?<br>
<br>
Denis<br><font color="#888888">
-- <br>
_________________<br>
vita es estrany<br>
<a href="http://spir.wikidot.com" target="_blank">spir.wikidot.com</a><br>
<br>
</font></blockquote></div><br>