Re: First project: questions on how-to, and on language features

2016-02-02 Thread Alex Vincent via Digitalmars-d-learn
On Sunday, 24 January 2016 at 18:52:41 UTC, Chris Wright wrote: There is no documentation, so I have no idea what you're trying to achieve here. So your questions about why this isn't in Phobos, whether there are any other libraries that do this, and whether there's a way to simplify your

Re: First project: questions on how-to, and on language features

2016-01-25 Thread Ali Çehreli via Digitalmars-d-learn
On 01/24/2016 04:26 AM, Marc Schütz wrote: >> (2) In the unittest code, I have a block that I want to rewrite using >> assertThrown, but I can't figure out from either the book or the >> website the correct usage. What's the right way to specify a >> StringException with a particular message I

Re: First project: questions on how-to, and on language features

2016-01-24 Thread Marc Schütz via Digitalmars-d-learn
On Sunday, 24 January 2016 at 06:07:13 UTC, Alex Vincent wrote: (1) It's not clear how to specify certain parts of a module or library as non-exportable. Is that possible? Is it desirable? (It's not that important, yet, but still...) Yes, definitely. By default symbols in a module are

Re: First project: questions on how-to, and on language features

2016-01-24 Thread Chris Wright via Digitalmars-d-learn
On Sun, 24 Jan 2016 06:07:13 +, Alex Vincent wrote: > Source code: > https://alexvincent.us/d-language/samples/intervalmap-rev1.d.txt There is no documentation, so I have no idea what you're trying to achieve here. So your questions about why this isn't in Phobos, whether there are any

First project: questions on how-to, and on language features

2016-01-23 Thread Alex Vincent via Digitalmars-d-learn
Source code: https://alexvincent.us/d-language/samples/intervalmap-rev1.d.txt After reading Ali Çehreli's book, "Programming in D", I wrote this little sample up as a starting point for my explorations into D. I've long admired the D language, but I've never actually tried to write practical