Re: D programming language overview video on Youtube

2023-12-21 Thread aberba via Digitalmars-d-learn
On Sunday, 17 December 2023 at 22:39:56 UTC, Witold Baryluk wrote: I made a bit random video on D lang for noobs, and people who might be interested. If you program more than one hour in D, do not watch it, but if you just found about D, feel free to check it out. It is not too short, and un

Re: Does D programming language have work steal queue?

2022-06-05 Thread mw via Digitalmars-d-learn
I will try it. It's in dub now: https://code.dlang.org/packages/liblfdsd Also added queue_umm: unbounded,manyproducer,many_consumer, lock-free queue

Re: Does D programming language have work steal queue?

2022-05-23 Thread mw via Digitalmars-d-learn
On Monday, 23 May 2022 at 23:07:00 UTC, zoujiaqing wrote: On Sunday, 22 May 2022 at 23:34:19 UTC, mw wrote: On Sunday, 22 May 2022 at 21:07:19 UTC, zoujiaqing wrote: Does D language have task steal queue? The requirements are high-performance, lock-free, and thread-safe. I have a C's liblfds

Re: Does D programming language have work steal queue?

2022-05-23 Thread zoujiaqing via Digitalmars-d-learn
On Sunday, 22 May 2022 at 22:37:43 UTC, Stefan Koch wrote: On Sunday, 22 May 2022 at 21:07:19 UTC, zoujiaqing wrote: Does D language have task steal queue? The requirements are high-performance, lock-free, and thread-safe. I have one called fluffy: https://github.com/UplinkCoder/fluffy I am

Re: Does D programming language have work steal queue?

2022-05-23 Thread zoujiaqing via Digitalmars-d-learn
On Sunday, 22 May 2022 at 23:34:19 UTC, mw wrote: On Sunday, 22 May 2022 at 21:07:19 UTC, zoujiaqing wrote: Does D language have task steal queue? The requirements are high-performance, lock-free, and thread-safe. I have a C's liblfds D wrapper: https://github.com/mw66/liblfdsd right now on

Re: Does D programming language have work steal queue?

2022-05-22 Thread Stefan Koch via Digitalmars-d-learn
On Sunday, 22 May 2022 at 23:35:11 UTC, mw wrote: On Sunday, 22 May 2022 at 22:37:43 UTC, Stefan Koch wrote: On Sunday, 22 May 2022 at 21:07:19 UTC, zoujiaqing wrote: Does D language have task steal queue? The requirements are high-performance, lock-free, and thread-safe. I have one called f

Re: Does D programming language have work steal queue?

2022-05-22 Thread mw via Digitalmars-d-learn
On Sunday, 22 May 2022 at 22:37:43 UTC, Stefan Koch wrote: On Sunday, 22 May 2022 at 21:07:19 UTC, zoujiaqing wrote: Does D language have task steal queue? The requirements are high-performance, lock-free, and thread-safe. I have one called fluffy: https://github.com/UplinkCoder/fluffy Th

Re: Does D programming language have work steal queue?

2022-05-22 Thread mw via Digitalmars-d-learn
On Sunday, 22 May 2022 at 21:07:19 UTC, zoujiaqing wrote: Does D language have task steal queue? The requirements are high-performance, lock-free, and thread-safe. I have a C's liblfds D wrapper: https://github.com/mw66/liblfdsd right now only bmm and bss queue are wrapped. It's not in dub

Re: Does D programming language have work steal queue?

2022-05-22 Thread Stefan Koch via Digitalmars-d-learn
On Sunday, 22 May 2022 at 21:07:19 UTC, zoujiaqing wrote: Does D language have task steal queue? The requirements are high-performance, lock-free, and thread-safe. I have one called fluffy: https://github.com/UplinkCoder/fluffy I am not 100% sure about the performance I did try to make it re

Re: Does D programming language have work steal queue?

2022-05-22 Thread zoujiaqing via Digitalmars-d-learn
On Sunday, 22 May 2022 at 21:23:24 UTC, zoujiaqing wrote: On Sunday, 22 May 2022 at 21:07:19 UTC, zoujiaqing wrote: Does D language have task steal queue? The requirements are high-performance, lock-free, and thread-safe. I think the final usage scenario is similar to this C++ project: https:

Re: Does D programming language have work steal queue?

2022-05-22 Thread zoujiaqing via Digitalmars-d-learn
On Sunday, 22 May 2022 at 21:07:19 UTC, zoujiaqing wrote: Does D language have task steal queue? The requirements are high-performance, lock-free, and thread-safe. I think the final usage scenario is similar to this C++ project: https://github.com/ConorWilliams/Forkpool

Does D programming language have work steal queue?

2022-05-22 Thread zoujiaqing via Digitalmars-d-learn
Does D language have task steal queue? The requirements are high-performance, lock-free, and thread-safe.

Re: How to print or check if a string is "\0" (null) terminated in the D programming language?

2022-04-06 Thread Salih Dincer via Digitalmars-d-learn
On Wednesday, 6 April 2022 at 08:55:43 UTC, BoQsc wrote: I have a feeling that some parts of my code contains unterminated strings and they do overflow into other string [...] If you suspect overflow, you can try string wrapping.

Re: How to print or check if a string is "\0" (null) terminated in the D programming language?

2022-04-06 Thread Stanislav Blinov via Digitalmars-d-learn
On Wednesday, 6 April 2022 at 08:55:43 UTC, BoQsc wrote: I have a feeling that some parts of my code contains unterminated strings and they do overflow into other string that is to be combined. I'd like to take a look at strings, analyse them manually and see if any of them end up terminated o

Re: How to print or check if a string is "\0" (null) terminated in the D programming language?

2022-04-06 Thread Andrea Fontana via Digitalmars-d-learn
On Wednesday, 6 April 2022 at 08:55:43 UTC, BoQsc wrote: I have a feeling that some parts of my code contains unterminated strings and they do overflow into other string that is to be combined. I'd like to take a look at strings, analyse them manually and see if any of them end up terminated o

How to print or check if a string is "\0" (null) terminated in the D programming language?

2022-04-06 Thread BoQsc via Digitalmars-d-learn
I have a feeling that some parts of my code contains unterminated strings and they do overflow into other string that is to be combined. I'd like to take a look at strings, analyse them manually and see if any of them end up terminated or not. Please provide any relevant examples of how you do

Re: Master Thesis using D Programming language.

2020-08-25 Thread Arun via Digitalmars-d-learn
On Monday, 24 August 2020 at 19:56:49 UTC, Tariq Siddiqui wrote: Hello everyone, I am looking for a master thesis topic using D Programming language. Earlier I choose Design by Introspection, but I did not find enough material in academic journals. DbI total material which I found is DConf

Re: Master Thesis using D Programming language.

2020-08-25 Thread aberba via Digitalmars-d-learn
On Monday, 24 August 2020 at 19:56:49 UTC, Tariq Siddiqui wrote: Hello everyone, I am looking for a master thesis topic using D Programming language. Earlier I choose Design by Introspection, but I did not find enough material in academic journals. DbI total material which I found is DConf

Re: Master Thesis using D Programming language.

2020-08-25 Thread aberba via Digitalmars-d-learn
On Tuesday, 25 August 2020 at 16:52:17 UTC, aberba wrote: On Monday, 24 August 2020 at 19:56:49 UTC, Tariq Siddiqui wrote: Academic don't know innovation. Only history :) Academia*

Re: Master Thesis using D Programming language.

2020-08-24 Thread James Blachly via Digitalmars-d-learn
On Monday, 24 August 2020 at 19:56:49 UTC, Tariq Siddiqui wrote: Hello everyone, I am looking for a master thesis topic using D Programming language. Earlier I choose Design by Introspection, but I did not find enough material in academic journals. DbI total material which I found is DConf

Master Thesis using D Programming language.

2020-08-24 Thread Tariq Siddiqui via Digitalmars-d-learn
Hello everyone, I am looking for a master thesis topic using D Programming language. Earlier I choose Design by Introspection, but I did not find enough material in academic journals. DbI total material which I found is DConf Andrei talk and the similar talk at Google campus, which starts

Re: Doubt about this book: The D Programming Language

2018-12-20 Thread MachineCode via Digitalmars-d-learn
On Sunday, 16 December 2018 at 19:57:08 UTC, Steven Schveighoffer wrote: On 12/16/18 1:37 PM, Marko wrote: On Amazon The D Programming Language has good reviews but it's 8 years old. So is this book still relevant today? Mostly, yes. And it's a pretty good book, even if it has some

Re: Doubt about this book: The D Programming Language

2018-12-19 Thread XavierAP via Digitalmars-d-learn
On Sunday, 16 December 2018 at 18:37:15 UTC, Marko wrote: On Amazon The D Programming Language has good reviews but it's 8 years old. So is this book still relevant today? Yes, I would recommend it. It is meant to be comprehensive but introductory, so many language or library changes

Re: Doubt about this book: The D Programming Language

2018-12-18 Thread Ron Tarrant via Digitalmars-d-learn
On Tuesday, 18 December 2018 at 01:16:54 UTC, Adam D Ruppe wrote: They're obvious. Stuff like doubled ; at the end of lines in code samples, or curly quotes when they should be straight. (They are the result of me fighting Microsoft Word and the review process with the publisher.) A few othe

Re: Doubt about this book: The D Programming Language

2018-12-17 Thread Adam D Ruppe via Digitalmars-d-learn
On Tuesday, 18 December 2018 at 00:36:12 UTC, Ron Tarrant wrote: Are these typos obvious, or is there an errata? They're obvious. Stuff like doubled ; at the end of lines in code samples, or curly quotes when they should be straight. (They are the result of me fighting Microsoft Word and the

Re: Doubt about this book: The D Programming Language

2018-12-17 Thread H. S. Teoh via Digitalmars-d-learn
On Tue, Dec 18, 2018 at 12:36:12AM +, Ron Tarrant via Digitalmars-d-learn wrote: > On Monday, 17 December 2018 at 15:32:37 UTC, Adam D. Ruppe wrote: > > > There's a few minor changes in mine (the D Cookbook one), and a few > > typos in the book I didn't catch until too late that mean some > >

Re: Doubt about this book: The D Programming Language

2018-12-17 Thread Ron Tarrant via Digitalmars-d-learn
On Monday, 17 December 2018 at 15:32:37 UTC, Adam D. Ruppe wrote: There's a few minor changes in mine (the D Cookbook one), and a few typos in the book I didn't catch until too late that mean some examples won't literally compile anyway, but they are all quite small. Are these typos obvious,

Re: Doubt about this book: The D Programming Language

2018-12-17 Thread Mike Parker via Digitalmars-d-learn
On Sunday, 16 December 2018 at 22:02:44 UTC, bachmeier wrote: Sometimes Packt has sales and you can get them pretty cheap. All Packt ebooks are on sale for $5 right now, so this is a great time to pick up both books along with Kai's Vibe.d book.

Re: Doubt about this book: The D Programming Language

2018-12-17 Thread Adam D. Ruppe via Digitalmars-d-learn
On Monday, 17 December 2018 at 06:08:58 UTC, Jani Hur wrote: Publish dates are 2014 and 2015. How much the language has changed/evolved since then and how much it will evolve in future ? There's a few minor changes in mine (the D Cookbook one), and a few typos in the book I didn't catch until

Re: Doubt about this book: The D Programming Language

2018-12-16 Thread Mike Parker via Digitalmars-d-learn
On Monday, 17 December 2018 at 06:08:58 UTC, Jani Hur wrote: Publish dates are 2014 and 2015. How much the language has changed/evolved since then and how much it will evolve in future ? So are these books relevant today and still next two years ? There haven't been any changes in the lang

Re: Doubt about this book: The D Programming Language

2018-12-16 Thread Jani Hur via Digitalmars-d-learn
On Sunday, 16 December 2018 at 22:02:44 UTC, bachmeier wrote: I can recommend D Cookbook https://www.packtpub.com/application-development/d-cookbook and Learning D https://www.packtpub.com/application-development/learning-d Publish dates are 2014 and 2015. How much the language has changed/e

Re: Doubt about this book: The D Programming Language

2018-12-16 Thread Ali Çehreli via Digitalmars-d-learn
On 12/16/2018 11:57 AM, Steven Schveighoffer wrote: > On 12/16/18 1:37 PM, Marko wrote: >> On Amazon The D Programming Language has good reviews but it's 8 years >> old. So is this book still relevant today? I would still enjoy reading that book but some parts do not matc

Re: Doubt about this book: The D Programming Language

2018-12-16 Thread bachmeier via Digitalmars-d-learn
On Sunday, 16 December 2018 at 18:37:15 UTC, Marko wrote: On Amazon The D Programming Language has good reviews but it's 8 years old. So is this book still relevant today? Would you recommend another book? PS: I am already a programmer writing mainly in C and C#. Thanks, Marko.

Re: Doubt about this book: The D Programming Language

2018-12-16 Thread bauss via Digitalmars-d-learn
On Sunday, 16 December 2018 at 19:57:08 UTC, Steven Schveighoffer wrote: I hope you feel right at home here :) But I must warn you, if you're anything like me, you will hate having to go back to another language. -Steve I think that's how most people start to feel when they start using D

Re: Doubt about this book: The D Programming Language

2018-12-16 Thread Steven Schveighoffer via Digitalmars-d-learn
On 12/16/18 1:37 PM, Marko wrote: On Amazon The D Programming Language has good reviews but it's 8 years old. So is this book still relevant today? Mostly, yes. And it's a pretty good book, even if it has some outdated parts. There's errata somewhere too. Would you recomme

Doubt about this book: The D Programming Language

2018-12-16 Thread Marko via Digitalmars-d-learn
On Amazon The D Programming Language has good reviews but it's 8 years old. So is this book still relevant today? Would you recommend another book? PS: I am already a programmer writing mainly in C and C#. Thanks, Marko.

Re: Andrei's "The D Programming Language" book. Up to date?

2017-11-29 Thread Jonathan M Davis via Digitalmars-d-learn
On Wednesday, November 29, 2017 17:26:11 Nick Treleaven via Digitalmars-d- learn wrote: > On Wednesday, 4 October 2017 at 20:49:26 UTC, John Gabriele wrote: > > What's changed in the language, library, and community since > > then that I should be aware of if following along with and > > learning f

Re: Andrei's "The D Programming Language" book. Up to date?

2017-11-29 Thread John Gabriele via Digitalmars-d-learn
On Wednesday, 29 November 2017 at 17:26:11 UTC, Nick Treleaven wrote: On Wednesday, 4 October 2017 at 20:49:26 UTC, John Gabriele wrote: What's changed in the language, library, and community since then that I should be aware of if following along with and learning from that book? Here's a li

Re: Andrei's "The D Programming Language" book. Up to date?

2017-11-29 Thread Nick Treleaven via Digitalmars-d-learn
On Wednesday, 29 November 2017 at 17:50:59 UTC, Arun Chandrasekaran wrote: Multiple alias this You can only have one subtyping member currently. Shared Not all of shared's guarantees are implemented yet. SafeD @safe (and therefore SafeD) isn't fully implemented. So, it doesn't necessarily

Re: Andrei's "The D Programming Language" book. Up to date?

2017-11-29 Thread Arun Chandrasekaran via Digitalmars-d-learn
On Wednesday, 29 November 2017 at 17:26:11 UTC, Nick Treleaven wrote: Here's a list of significant things - maybe incomplete: https://wiki.dlang.org/Differences_With_TDPL Multiple alias this You can only have one subtyping member currently. Shared Not all of shared's guarantees are implemen

Re: Andrei's "The D Programming Language" book. Up to date?

2017-11-29 Thread Nick Treleaven via Digitalmars-d-learn
On Wednesday, 4 October 2017 at 20:49:26 UTC, John Gabriele wrote: What's changed in the language, library, and community since then that I should be aware of if following along with and learning from that book? Here's a list of significant things - maybe incomplete: https://wiki.dlang.org/Dif

Re: Andrei's "The D Programming Language" book. Up to date?

2017-10-05 Thread Seb via Digitalmars-d-learn
On Wednesday, 4 October 2017 at 20:49:26 UTC, John Gabriele wrote: Hi all, This is my first message to this forum. And what a pleasure it is to be here. :) I was just looking around at what D books are available. I see that Andrei's "The D Programming Language" was pub

Re: Andrei's "The D Programming Language" book. Up to date?

2017-10-05 Thread Dukc via Digitalmars-d-learn
On Wednesday, 4 October 2017 at 20:49:26 UTC, John Gabriele wrote: Hi all, This is my first message to this forum. And what a pleasure it is to be here. :) I was just looking around at what D books are available. I see that Andrei's "The D Programming Language" was pub

Re: Andrei's "The D Programming Language" book. Up to date?

2017-10-04 Thread Ali Çehreli via Digitalmars-d-learn
Andrei's book contains some outdated and some not-yet-implemented things but it's still a great read. It explains core features and design decisions of D very well. Ali

Andrei's "The D Programming Language" book. Up to date?

2017-10-04 Thread John Gabriele via Digitalmars-d-learn
Hi all, This is my first message to this forum. And what a pleasure it is to be here. :) I was just looking around at what D books are available. I see that Andrei's "The D Programming Language" was published in 2010. What's changed in the language, library, and communit

Re: De Facto standard for D programming language

2016-04-15 Thread jmh530 via Digitalmars-d-learn
On Friday, 15 April 2016 at 18:41:23 UTC, Ali Çehreli wrote: Having said that, there are some omissions of how some features interact. I think it is a fantastic resource and have made much use out of it. I hope you keep updating it. It just happens that there are always some random quirk

Re: De Facto standard for D programming language

2016-04-15 Thread Ali Çehreli via Digitalmars-d-learn
On 04/15/2016 11:19 AM, jmh530 wrote: > On Friday, 15 April 2016 at 17:51:41 UTC, Napster wrote: >> I would like to start learning the De Facto standard. which book or >> document would you use? >> >> http://erdani.com/index.php/books/tdpl/ >> >> or >> >> https://dlang.org/spec/intro.html >> >> w

Re: De Facto standard for D programming language

2016-04-15 Thread Ali Çehreli via Digitalmars-d-learn
On 04/15/2016 11:31 AM, Napster wrote: I am writing a survey paper about D programming language. I want to use De Facto standard in my paper. I am not sure which one is? Both look the same. https://dlang.org/spec/intro.html is it. TDPL is behind some of D changes at this point. Ali

Re: De Facto standard for D programming language

2016-04-15 Thread Napster via Digitalmars-d-learn
at those other sources as well. I am writing a survey paper about D programming language. I want to use De Facto standard in my paper. I am not sure which one is? Both look the same.

Re: De Facto standard for D programming language

2016-04-15 Thread jmh530 via Digitalmars-d-learn
On Friday, 15 April 2016 at 17:51:41 UTC, Napster wrote: I would like to start learning the De Facto standard. which book or document would you use? http://erdani.com/index.php/books/tdpl/ or https://dlang.org/spec/intro.html which one would you call de facto standard? If I were learning

De Facto standard for D programming language

2016-04-15 Thread Napster via Digitalmars-d-learn
I would like to start learning the De Facto standard. which book or document would you use? http://erdani.com/index.php/books/tdpl/ or https://dlang.org/spec/intro.html which one would you call de facto standard?

Re: Programming in D vs The D Programming Language

2016-03-14 Thread Saša Janiška via Digitalmars-d-learn
Ali Çehreli writes: > I agree and I doubt that I will ever see PinD on a local bookshop > shelf. What I meant was, IngramSpark makes it *possible* at all for a > local bookshop to order the book for you and that you can return it > for a full refund. Now I'm living in much smaller place and will

Re: Programming in D vs The D Programming Language

2016-03-13 Thread Ali Çehreli via Digitalmars-d-learn
On 03/13/2016 02:40 PM, Saša Janiška wrote: >> quality of the softcover by CreateSpace > Have you seen this one: > > http://www.amazon.com/gp/customer-reviews/R1WWT9EIV3UDI0/ref=cm_cr_arp_d_rvw_ttl?ie=UTF8&ASIN=0692599436 Yes, I had seen that one. It is unfortunate... :-/ >> I've gone all th

Re: Programming in D vs The D Programming Language

2016-03-13 Thread Saša Janiška via Digitalmars-d-learn
Ali Çehreli writes: > You may find that D has changed since TDPL was printed but it's still > a great read. In some places it explains tradeoffs in language design > in general. Yeah, I like, based on what I've seen some portions which explains 'why'. > PiD starts as a tutorial to novices but c

Re: Programming in D vs The D Programming Language

2016-03-13 Thread Ali Çehreli via Digitalmars-d-learn
On 03/13/2016 09:27 AM, gour wrote: > a) how much is Andrei's book still relevant? You may find that D has changed since TDPL was printed but it's still a great read. In some places it explains tradeoffs in language design in general. > b) whether PiD is recommended one to start with D *toda

Re: Programming in D vs The D Programming Language

2016-03-13 Thread _d0s_ via Digitalmars-d-learn
On Sunday, 13 March 2016 at 16:27:07 UTC, gour wrote: Hello, after quite some time I'm returning to D being fed up with some other languages to become more ready for writing open-source multi-platform desktop app(s)... I already own copy of Andrei's The D Programming Language

Programming in D vs The D Programming Language

2016-03-13 Thread gour via Digitalmars-d-learn
Hello, after quite some time I'm returning to D being fed up with some other languages to become more ready for writing open-source multi-platform desktop app(s)... I already own copy of Andrei's The D Programming Language book, but never went fully through it, but I see in th

Re: Error in 'The D Programming Language' (2010)?

2016-01-11 Thread asdfa via Digitalmars-d-learn
On Tuesday, 12 January 2016 at 00:36:15 UTC, Ali Çehreli wrote: On 01/11/2016 04:28 PM, asdfa wrote: > Both DMD and GDC complain, saying > Error: template instance sort!((a, b) > { > return freqs[a] > freqs[b]; > } > ) template 'sort' is not defined That issue is already in the errata: http:

Re: Error in 'The D Programming Language' (2010)?

2016-01-11 Thread Ali Çehreli via Digitalmars-d-learn
On 01/11/2016 04:28 PM, asdfa wrote: > Both DMD and GDC complain, saying > Error: template instance sort!((a, b) > { > return freqs[a] > freqs[b]; > } > ) template 'sort' is not defined That issue is already in the errata: http://erdani.com/tdpl/errata/ Add the following line to fix: import

Error in 'The D Programming Language' (2010)?

2016-01-11 Thread asdfa via Digitalmars-d-learn
I have copied more or less verbatim an example from The D Programming Language, under 1.4.3 Counting Frequencies. Lambda Functions This is the code import std.stdio, std.string; void main() { uint[string] freqs; // Compute counts foreach (line; stdin.byLine()) { foreach

Re: The D Programming Language page 161.

2013-11-13 Thread Andrej Mitrovic
On 11/13/13, Adam D. Ruppe wrote: > On Wednesday, 13 November 2013 at 08:16:34 UTC, Tor Einar > Tønnessen wrote: >> void writeln(string a0, int a1, string a2, int[new] a3) { > > Around the time the book was written, there was a debate as to if > we should make dynamic arrays and slices two differe

Re: The D Programming Language page 161.

2013-11-13 Thread Adam D. Ruppe
On Wednesday, 13 November 2013 at 08:16:34 UTC, Tor Einar Tønnessen wrote: void writeln(string a0, int a1, string a2, int[new] a3) { Around the time the book was written, there was a debate as to if we should make dynamic arrays and slices two different types. T[new] was the proposed syntax f

Re: The D Programming Language page 161.

2013-11-13 Thread Uplink_Coder
I guess that new should be length as it represents as an integer variable

The D Programming Language page 161.

2013-11-13 Thread Tor Einar Tønnessen
Hello. I am trying to learn D using (among other things) "The D Programming Language" book. On page 161 it says: snippet... void writeln(string a0, int a1, string a2, int[new] a3) { ...snippet I am wondering about the expression "int[new] a3" What does that mean? I

Re: Broken link to D Programming Language Specification

2012-04-21 Thread Jakob Ovrum
ed on Github: https://github.com/D-Programming-Language/d-programming-language.org To generate the eBook, run: make dlangspec.mobi You will need the catdoc tool from the tools collection: https://github.com/D-Programming-Language/tools You will also need the kindlegen command line

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!

Trying to compile sample from The D Programming Language book.

2011-04-03 Thread Junior
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.stdio; // blah blah blah auto words = split(senten

Re: "D Programming Language"

2010-06-08 Thread Robert Clipsham
On 08/06/10 13:12, Lars T. Kyllingstad wrote: I don't know when you ordered it, but that has changed now, at least. At amazon.co.uk it costs £18.50, while at amazon.com it sells for $42.70 -- roughly £29. Also, for Europeans, the delivery cost is lower if you order from UK. -Lars I ordered i

Re: "D Programming Language"

2010-06-08 Thread Lars T. Kyllingstad
On Tue, 08 Jun 2010 13:00:51 +0100, Robert Clipsham wrote: > On 08/06/10 11:23, Patrick Byrne wrote: >> Amazon (UK) tells me that publication of this book is delayed. Is it >> still coming soon, please? >> >> -- >> Patrick Byrne > > I ordered it from amazon.com, it was half the priceof the UK ver

Re: "D Programming Language"

2010-06-08 Thread Robert Clipsham
On 08/06/10 11:23, Patrick Byrne wrote: Amazon (UK) tells me that publication of this book is delayed. Is it still coming soon, please? -- Patrick Byrne I ordered it from amazon.com, it was half the priceof the UK version ;) I've had no delay message about it for a while now, the last one I g

Re: "D Programming Language"

2010-06-08 Thread Lars T. Kyllingstad
On Tue, 08 Jun 2010 11:23:23 +0100, Patrick Byrne wrote: > Amazon (UK) tells me that publication of this book is delayed. Is it > still coming soon, please? I also ordered it from Amazon UK, and got the same message. But the book is, as far as I know, finished and printed. So I suppose it's mo

"D Programming Language"

2010-06-08 Thread Patrick Byrne
Amazon (UK) tells me that publication of this book is delayed. Is it still coming soon, please? -- Patrick Byrne