Re: Trying to compile sample from The D Programming Language book.

2011-04-04 Thread Jesus Alvarez
I reported the error to the author. Thanks guys! On Sun, Apr 3, 2011 at 3:34 AM, spir wrote: > On 04/03/2011 09:38 AM, Jesus Alvarez wrote: > >> 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

Re: Trying to compile sample from The D Programming Language book.

2011-04-03 Thread spir
On 04/03/2011 09:38 AM, Jesus Alvarez wrote: 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. If the TDPL code d

Re: Trying to compile sample from The D Programming Language book.

2011-04-03 Thread Jonathan M Davis
On 2011-04-03 00:10, Junior wrote: > Hello, I am completely stuck on this error, any help would be > appreciated... google was not helpful (too many useless matches for "D > "). > > I am trying to compile this: > > import std.string, std.algorithm, std.conv, std.ctype, std.regex, > std.range, std

Re: Trying to compile sample from The D Programming Language book.

2011-04-03 Thread Jesus Alvarez
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!