digitalmars.D.learn - Re: Trying to compile sample from The D Programming Language book.
- Jesus Alvarez <jeezusjr gmail.com> Apr 03 2011
--0016361e82aebc9f92049ffebaa4 Content-Type: text/plain; charset=UTF-8 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! --0016361e82aebc9f92049ffebaa4 Content-Type: text/html; charset=UTF-8 I got it to compile adding std.regex to split to make it:<div><br></div><blockquote class="webkit-indent-blockquote" style="margin: 0 0 0 40px; border: none; padding: 0px;"><div>auto words = std.regex.split (sentence, regex("[ \t,.;:?]+"));</div> <div><br></div></blockquote>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?<div><br></div><div>Thanks!</div> --0016361e82aebc9f92049ffebaa4--
Apr 03 2011