Re: Categorization of warnings

2016-03-29 Thread tsbockman via Digitalmars-d
On Monday, 28 March 2016 at 16:21:15 UTC, Johan Engelen wrote: I just submitted a PR [1] that catagorizes warnings, such that you can do something like this: dmd -w -Wno-not-reachable which would error on any warning except the "statement not reachable" warnings (it completely disables that war

Re: debugger blues

2016-03-29 Thread Marco Leise via Digitalmars-d
Am Mon, 28 Mar 2016 19:29:38 + schrieb cy : > On Sunday, 27 March 2016 at 15:40:47 UTC, Marco Leise wrote: > > Is it just me? I've never heard of a programming environment, > > let alone a system programming language providing that > > information. > > Well, not by default certainly. It is

Re: Code coverage in Phobos

2016-03-29 Thread Seb via Digitalmars-d
On Monday, 28 March 2016 at 11:29:55 UTC, Vladimir Panteleev wrote: On Monday, 28 March 2016 at 01:30:34 UTC, Seb wrote: AFAIK dmd supports the `-cov` flag since quite some time, so I would be interested why there's no code coverage bot. There also seems to exist at least two external platforms

Re: Code coverage in Phobos

2016-03-29 Thread Walter Bright via Digitalmars-d
On 3/29/2016 3:33 AM, Basile B. wrote: Couldn't the coverage be done at compile time ? The implementation for that would be utterly different.

Re: the most D-ish GUI library

2016-03-29 Thread Gerald via Digitalmars-d
On Tuesday, 29 March 2016 at 17:37:15 UTC, Nick Sabalausky wrote: Linux/GNOME (and any other Linux DE based on GTK): Use the QGtkStyle theme: It's a theme for Qt that *uses* GTK to render, therefore actuall

Re: Oh, my GoD! Goroutines on D

2016-03-29 Thread H. S. Teoh via Digitalmars-d
On Tuesday, 29 March 2016 at 17:10:02 UTC, Jin wrote: On Tuesday, 29 March 2016 at 12:30:24 UTC, Dejan Lekic wrote: +1 Wiki is absolutely the best solution to this, I agree. Plus, we already have a wiki so he should just go there and start writing. The community will incorrect grammar/syntax a

Re: Pre-alpha D language online tour

2016-03-29 Thread Bubbasaur via Digitalmars-d
On Tuesday, 29 March 2016 at 16:26:27 UTC, André wrote: ... I would appreciate if people could do some proof reading and just create pull requests for the content: Nice work but I really think that the left content should be expandable. Some button like Try it or whatever should do the trick

Re: the most D-ish GUI library

2016-03-29 Thread Nick Sabalausky via Digitalmars-d
On 03/28/2016 01:21 PM, WebFreak001 wrote: You are right, i forgot Qt/KDE guys. KDE uses Qt for their programs and stuff but GNOME and the Ubuntu team and most desktop environments do use GTK instead of Qt. Qt is more common on OS X and Windows than on linux. I guess there will never be an absol

Re: Pre-alpha D language online tour

2016-03-29 Thread jmh530 via Digitalmars-d
On Tuesday, 29 March 2016 at 16:26:27 UTC, André wrote: Or just drop me a message where you find a bug and I'll have it fixed. Looks good. A few suggestions, some content, some typo. D Basics (fix capitalization?): Page 3, code example at the bottom right does not compile with @system. Als

Re: Oh, my GoD! Goroutines on D

2016-03-29 Thread Jin via Digitalmars-d
On Tuesday, 29 March 2016 at 12:30:24 UTC, Dejan Lekic wrote: +1 Wiki is absolutely the best solution to this, I agree. Plus, we already have a wiki so he should just go there and start writing. The community will incorrect grammar/syntax and typos. http://wiki.dlang.org/Go_to_D

Re: Pre-alpha D language online tour

2016-03-29 Thread André via Digitalmars-d
On Monday, 25 January 2016 at 18:17:09 UTC, André wrote: Hi, Inspired by the Go online language tour (https://tour.golang.org/) and the great experience it gave me learning the language I started a similar project for D some weeks ago. It's currently in a very pre-alpha state but I wanted to

Re: Oh, no UFCS for member functions

2016-03-29 Thread Luís Marques via Digitalmars-d
On Tuesday, 29 March 2016 at 15:08:05 UTC, Anonymouse wrote: The ugly workaround if you really don't want to reorganise things (and/or use the tile function directly) is to make a top-level alias tile = Player.tile; Cool, I was not aware of that workaround. Also, I wonder if this workaround d

Re: Oh, no UFCS for member functions

2016-03-29 Thread Anonymouse via Digitalmars-d
On Tuesday, 29 March 2016 at 14:56:53 UTC, Luís Marques wrote: Too bad this doesn't work: struct Player { MapTile[] playerMap; // partial private knowledge of map Location destination; auto tile(Location loc) { return playerMap[loc]; } void foo() { i

Oh, no UFCS for member functions

2016-03-29 Thread Luís Marques via Digitalmars-d
Too bad this doesn't work: struct Player { MapTile[] playerMap; // partial private knowledge of map Location destination; auto tile(Location loc) { return playerMap[loc]; } void foo() { if(destination.tile.hasMonster) ... } }

Re: the most D-ish GUI library

2016-03-29 Thread Luis via Digitalmars-d
On Friday, 25 March 2016 at 14:45:05 UTC, Nick Sabalausky wrote: On 03/13/2016 06:33 PM, WebFreak001 wrote: I prefer GtkD, its the most system native one on linux I dispute that. Many people, like myself, use KDE rather than GNOME or Unity, and GTK programs are just as horrible to put up wi

Re: Why is separating class ind struct is bad?

2016-03-29 Thread Danni Coy via Digitalmars-d
> Could anybody explain what this mean and why this way is not modern? This is in the context of users migrating from C++, and it is bad in so far as it is not what a C++ programmer who hasn't read all the documentation would expect. The easiest path of migration would be if the programmer can de

Re: Categorization of warnings

2016-03-29 Thread Johan Engelen via Digitalmars-d
On Tuesday, 29 March 2016 at 04:29:52 UTC, Dicebot wrote: On 03/28/2016 08:05 PM, Steven Schveighoffer wrote: Warnings can be an important part of the deprecation process. The next release of the compiler will illustrate that. No. Deciding that warnings have any relation with deprecation proc

Re: Categorization of warnings

2016-03-29 Thread Dicebot via Digitalmars-d
On 03/29/2016 03:34 PM, Steven Schveighoffer wrote: > I think it might be simply deprecation. I can't remember. > > Tested: > > Yes, it is a deprecation, not a warning (compilation succeeds on -w). I > stand corrected! Thanks, no need for me to panic in that case :) > This is in essence, still

Re: RFC: Units of measurement for D (Phobos?)

2016-03-29 Thread Seb via Digitalmars-d
On Tuesday, 22 March 2016 at 09:55:28 UTC, Zardoz wrote: Impressive! I like the idea, in special when you can handled derived units and doing conversions like this : convert!(kilo(newton))(200 * gram * meter / pow!2(second))); Wow that's pretty sweet! So @nordlow how about pushing this

Re: Categorization of warnings

2016-03-29 Thread Steven Schveighoffer via Digitalmars-d
On 3/29/16 8:24 AM, Dicebot wrote: On Tuesday, 29 March 2016 at 12:21:59 UTC, Steven Schveighoffer wrote: The next release will have a deprecation warning about selective imports that mistakenly allow usage of FQN. You will see most likely. Phobos had thousands of them. Deprecation or a warni

Re: Oh, my GoD! Goroutines on D

2016-03-29 Thread Dejan Lekic via Digitalmars-d
On Monday, 28 March 2016 at 10:49:28 UTC, Jacob Carlborg wrote: It would be useful with a wiki page, or similar, that describes and compares different ways of doing concurrency in D, both built-in and third party libraries like this and vibe.d. Also compare against other languages like Go, Erla

Re: Better Phobos contribution guide

2016-03-29 Thread Seb via Digitalmars-d
On Friday, 25 March 2016 at 17:56:05 UTC, Xinok wrote: - check: did you add enough tests? I would extend this to emphasize "complete code coverage" in unit tests. Yeah it would be great if we can check this automatically - see the other discussion: http://forum.dlang.org/thread/vzmkecogfc

Re: Categorization of warnings

2016-03-29 Thread Dicebot via Digitalmars-d
On Tuesday, 29 March 2016 at 12:21:59 UTC, Steven Schveighoffer wrote: The next release will have a deprecation warning about selective imports that mistakenly allow usage of FQN. You will see most likely. Phobos had thousands of them. -Steve Deprecation or a warning? It must be deprecation

Re: Categorization of warnings

2016-03-29 Thread Steven Schveighoffer via Digitalmars-d
On 3/29/16 12:29 AM, Dicebot wrote: On 03/28/2016 08:05 PM, Steven Schveighoffer wrote: Warnings can be an important part of the deprecation process. The next release of the compiler will illustrate that. No. Deciding that warnings have any relation with deprecation process was huge mistake an

Re: Code coverage in Phobos

2016-03-29 Thread Basile B. via Digitalmars-d
On Tuesday, 29 March 2016 at 09:39:49 UTC, Walter Bright wrote: On 3/28/2016 9:38 PM, Vladimir Panteleev wrote: Ah, OK. Though, this is something that could be improved in the implementation without changing the language. DMD should not emit code that's not called in the module, and not callabl

Re: Code coverage in Phobos

2016-03-29 Thread Walter Bright via Digitalmars-d
On 3/28/2016 9:38 PM, Vladimir Panteleev wrote: Ah, OK. Though, this is something that could be improved in the implementation without changing the language. DMD should not emit code that's not called in the module, and not callable from outside the module due to e.g. being private. Probably woul

Re: Oh, my GoD! Goroutines on D

2016-03-29 Thread sigod via Digitalmars-d
On Monday, 28 March 2016 at 22:35:12 UTC, Jin wrote: On Monday, 28 March 2016 at 19:29:55 UTC, Walter Bright wrote: On 3/28/2016 6:10 AM, Jin wrote: My english is too bad to write articles, sorry :-( Baloney, your english is very good. Besides, I'm sure there will be many volunteers here to

Re: Categorization of warnings

2016-03-29 Thread Dicebot via Digitalmars-d
On Tuesday, 29 March 2016 at 08:13:59 UTC, Johan Engelen wrote: On Tuesday, 29 March 2016 at 04:35:11 UTC, Dicebot wrote: Sadly, this isn't very useful. If there is one legitimate use of code warned about one wants to disable that specific place and not all warning of that kind in whole progr

Re: dlang.org makefile pains

2016-03-29 Thread Atila Neves via Digitalmars-d
On Thursday, 24 March 2016 at 18:56:00 UTC, H. S. Teoh wrote: On Thu, Mar 24, 2016 at 06:51:32PM +, Piotrek via Digitalmars-d wrote: On Tuesday, 22 March 2016 at 23:23:56 UTC, Jakob Ovrum wrote: >Bump. Please help. If Martin is the only one who understands >the makefile then we have a serio

Re: Categorization of warnings

2016-03-29 Thread Johan Engelen via Digitalmars-d
On Tuesday, 29 March 2016 at 04:35:11 UTC, Dicebot wrote: Sadly, this isn't very useful. If there is one legitimate use of code warned about one wants to disable that specific place and not all warning of that kind in whole program. Which means it has to be controlled by some sort of pragma.

Re: Why is separating class ind struct is bad?

2016-03-29 Thread Walter Bright via Digitalmars-d
On 3/28/2016 9:56 PM, Dicebot wrote: It is hard to argue that but I have never encountered any issues from actual confusion between struct and class in C++ (because there isn't any real difference), only from misusage of virtual types. Misusage of virtual types is the confusion. 1. Want to s

Re: debugger blues

2016-03-29 Thread Iain Buclaw via Digitalmars-d
On 28 March 2016 at 21:29, cy via Digitalmars-d wrote: > On Sunday, 27 March 2016 at 15:40:47 UTC, Marco Leise wrote: > >> Is it just me? I've never heard of a programming environment, let alone a >> system programming language providing that information. >> > > Well, not by default certainly. It