Re: ini library in OSX

2014-12-20 Thread Joel via Digitalmars-d-learn
On Monday, 13 October 2014 at 16:06:42 UTC, Robert burner Schadek wrote: On Saturday, 11 October 2014 at 22:38:20 UTC, Joel wrote: On Thursday, 11 September 2014 at 10:49:48 UTC, Robert burner Schadek wrote: some self promo: http://code.dlang.org/packages/inifiled I would like an example?

Re: DUB build questions

2014-12-20 Thread Russel Winder via Digitalmars-d-learn
On Sat, 2014-12-20 at 05:46 +, Dicebot via Digitalmars-d-learn wrote: On Saturday, 20 December 2014 at 04:15:00 UTC, Rikki Cattermole wrote: b) Can I do parallel builds with dub. CMake gives me Makefiles so I can make -j does dub have a similar option? No Worth noting

Re: Derelict SDL2 library not loading on OS X

2014-12-20 Thread Mike Parker via Digitalmars-d-learn
On 12/20/2014 11:46 AM, Joel wrote: To uninstall SDL, do I just wipe the framework, and SDL dylib? Sorry, I can't help you there. I have no idea how things are done on Mac. And I think it depends on how it got there in the first place. You may want to take that question to the SDL mailing

Re: Get vars in current scope at compile time?

2014-12-20 Thread bearophile via Digitalmars-d-learn
Rikki Cattermole: No way to do this. But perhaps it's worth supporting as future enhancement with a __traits. What are the use cases? Bye, bearophile

Re: Get vars in current scope at compile time?

2014-12-20 Thread Rikki Cattermole via Digitalmars-d-learn
On 20/12/2014 11:03 p.m., bearophile wrote: Rikki Cattermole: No way to do this. But perhaps it's worth supporting as future enhancement with a __traits. What are the use cases? Bye, bearophile Short answer, I'm not keen on the idea, at least not yet. I would far more comfortable once

Re: Unittest in a windows app

2014-12-20 Thread Dan Nestor via Digitalmars-d-learn
I managed to isolate the problem to the following. Program 1 below works (displays unit test failure when run), while program 2 does not. * Program 1 * import std.stdio; unittest { assert(false); } void main() { writeln(Hello D-World!); } * Program 2 * module

Re: Unittest in a windows app

2014-12-20 Thread Dicebot via Digitalmars-d-learn
Can it be because Windows main wrapper consumes exceptions or spawn a separate thread for that or something like that?

On inheritance and polymorphism in cats and dogs (and other beasts too)

2014-12-20 Thread Derix via Digitalmars-d-learn
So, I have this pet project where classes Cat and Dog inherit from the more generic Beast class. All beasts prosper and multiply and so do cats and dogs. The breeding routine is fairly constant across species, with minor variations. So I'd like to define the breed method in the Beast class and

Re: On inheritance and polymorphism in cats and dogs (and other beasts too)

2014-12-20 Thread tcak via Digitalmars-d-learn
On Saturday, 20 December 2014 at 15:40:32 UTC, Derix wrote: So, I have this pet project where classes Cat and Dog inherit from the more generic Beast class. All beasts prosper and multiply and so do cats and dogs. The breeding routine is fairly constant across species, with minor variations. So

Re: On inheritance and polymorphism in cats and dogs (and other beasts too)

2014-12-20 Thread Adam D. Ruppe via Digitalmars-d-learn
On Saturday, 20 December 2014 at 15:40:32 UTC, Derix wrote: // do what all beasts do You'll want to call the function in the base class, which is done with the super keyword in D. I wouldn't make the super function return the new instance though, that can't be as easily

Re: Unittest in a windows app

2014-12-20 Thread Rainer Schuetze via Digitalmars-d-learn
On 19.12.2014 22:39, Dan Nestor wrote: Hello everybody, this is my first post on this forum. I have a question about unit testing a Windows application. I have slightly modified Visual D's default Windows application stub to the following: [...] try {

Why call function rise exception?

2014-12-20 Thread Suliman via Digitalmars-d-learn
The problem with 31 string. http://www.everfall.com/paste/id.php?jgsdz7mdbrnm If I uncomment it, and server response is return 404 code I code at runtime throw exception with text: Can't parse config: HTTP request returned status code 404 I thought that checkLinkCode is throw any king

Re: Why call function rise exception?

2014-12-20 Thread Suliman via Digitalmars-d-learn
Oh sorry I understood where problem.

Re: dco how to specify Jpath?

2014-12-20 Thread FrankLike via Digitalmars-d-learn
On Thursday, 20 November 2014 at 10:48:17 UTC, Suliman wrote: I am playing with dco. And it's look very helpful for tiny projects. I can't understand is it's possible to add to dco.ini Jpath? I am talking about something like: dflags=-JD:\code\d\App1\source\ but when I am trying to compile

Re: dco how to specify Jpath?

2014-12-20 Thread FrankLike via Digitalmars-d-learn
On Thursday, 20 November 2014 at 10:48:17 UTC, Suliman wrote: I am playing with dco. And it's look very helpful for tiny projects. I can't understand is it's possible to add to dco.ini Jpath? I am talking about something like: dflags=-JD:\code\d\App1\source\ but when I am trying to compile

Re: dco how to specify Jpath?

2014-12-20 Thread FrankLike via Digitalmars-d-learn
On Thursday, 20 November 2014 at 10:48:17 UTC, Suliman wrote: I am playing with dco. And it's look very helpful for tiny projects. I can't understand is it's possible to add to dco.ini Jpath? I am talking about something like: dflags=-JD:\code\d\App1\source\ but when I am trying to compile

Re: dco how to specify Jpath?

2014-12-20 Thread FrankLike via Digitalmars-d-learn
On Thursday, 20 November 2014 at 10:48:17 UTC, Suliman wrote: I am playing with dco. And it's look very helpful for tiny projects. I can't understand is it's possible to add to dco.ini Jpath? I am talking about something like: dflags=-JD:\code\d\App1\source\ but when I am trying to compile