Re: Regarding warnings

2013-07-01 Thread Kagamin
On Saturday, 29 June 2013 at 20:26:15 UTC, Jonathan M Davis wrote: http://d.puremagic.com/issues/show_bug.cgi?id=10147 This problem is because the compiler processes warnings too early. If the is expression issues only warnings, it probably should succeed, because those warnings don't escape

Re: Regarding warnings

2013-06-30 Thread bearophile
Jonathan M Davis: However, I'm sure that we disagree on the best handling of warnings in that I want them gone _completely_, whereas you seem to want to always add more of them. I'd like a list of all the warnings I have asked for. Recently I have asked for a warning, but in the enhancement

Re: Regarding warnings

2013-06-30 Thread Andrej Mitrovic
On 6/30/13, Jonathan M Davis wrote: > I want them gone _completely_ You still need them for language features that go through a deprecation stage.

Re: Regarding warnings

2013-06-30 Thread Jonathan M Davis
On Sunday, June 30, 2013 02:03:47 bearophile wrote: > Jonathan M Davis: > > http://d.puremagic.com/issues/show_bug.cgi?id=10147 > > I have aggregated a request of mine to your issue 10147. Are you > OK with this? (What I am asking in addition to your request is > for informational warnings to be a

Re: Regarding warnings

2013-06-30 Thread John Colvin
On Saturday, 29 June 2013 at 22:26:13 UTC, bearophile wrote: John Colvin: I've been using D heavily for well over a year now and I've never used -w (facepalm) That's good anecdotal evidence that it should be opt-out not opt-in. Brb... Recompiling all my code with -w to find out my stupid mi

Re: Regarding warnings

2013-06-30 Thread monarch_dodra
On Saturday, 29 June 2013 at 23:28:54 UTC, bearophile wrote: As for the whole -w/-wi thing, why can't people just read the list of switches? I have seen tens of times that this doesn't happen, in D.learn, in #D on IRC and with friends, students, etc. Silent compilers that keep the muzzle shut

Re: Regarding warnings

2013-06-30 Thread monarch_dodra
On Saturday, 29 June 2013 at 16:07:57 UTC, bearophile wrote: I suggest to remove the "-w" switch from the list of dmd/ldc2 switches, and later to remove that functionality too. It's better to keep only the informational warnings. I keep seeing people in D.learn that miss warnings because they

Re: Regarding warnings

2013-06-29 Thread Andrej Mitrovic
On 6/30/13, bearophile wrote: > Andrej Mitrovic: > >> I still want to ability for compilation to halt on a warning, > > It's a fair desire, but for it probably the problems in Issue > 10321 need to be faced first. I've added a reply to the bugzilla issue, I think I might not even need this behavi

Re: Regarding warnings

2013-06-29 Thread bearophile
Jonathan M Davis: http://d.puremagic.com/issues/show_bug.cgi?id=10147 I have aggregated a request of mine to your issue 10147. Are you OK with this? (What I am asking in addition to your request is for informational warnings to be active on default and to be disabled on request.) Bye, bea

Re: Regarding warnings

2013-06-29 Thread bearophile
Andrej Mitrovic: I still want to ability for compilation to halt on a warning, It's a fair desire, but for it probably the problems in Issue 10321 need to be faced first. As for the whole -w/-wi thing, why can't people just read the list of switches? I have seen tens of times that this

Re: Regarding warnings

2013-06-29 Thread Andrej Mitrovic
On 6/30/13, bearophile wrote: > If you seem my first point, I am suggesting to remove "-w" from > the switches and to use "-wi" (actually I am suggesting "-wi" to > become the default compilation mode). Regardless of any FR's I still want to ability for compilation to halt on a warning, even if i

Re: Regarding warnings

2013-06-29 Thread bearophile
John Colvin: I've been using D heavily for well over a year now and I've never used -w (facepalm) That's good anecdotal evidence that it should be opt-out not opt-in. Brb... Recompiling all my code with -w to find out my stupid mistakes :p If you seem my first point, I am suggesting to rem

Re: Regarding warnings

2013-06-29 Thread John Colvin
On Saturday, 29 June 2013 at 16:07:57 UTC, bearophile wrote: I suggest to remove the "-w" switch from the list of dmd/ldc2 switches, and later to remove that functionality too. It's better to keep only the informational warnings. I keep seeing people in D.learn that miss warnings because they

Re: Regarding warnings

2013-06-29 Thread Jonathan M Davis
On Saturday, June 29, 2013 18:07:55 bearophile wrote: > I suggest to remove the "-w" switch from the list of dmd/ldc2 > switches, and later to remove that functionality too. It's better > to keep only the informational warnings. > > I keep seeing people in D.learn that miss warnings because they >

Re: Regarding warnings

2013-06-29 Thread bearophile
w0rp: This might increase knowledge like you say. Plus, you'd have warnings about stuff like implicit switch case fall-through as the default. I think this idea sounds okay. I think a "strong, silent type" of D compiler is not the best. Maybe Walter can offer an opinion, even negative :-) By

Re: Regarding warnings

2013-06-29 Thread w0rp
On Saturday, 29 June 2013 at 16:07:57 UTC, bearophile wrote: I suggest to remove the "-w" switch from the list of dmd/ldc2 switches, and later to remove that functionality too. It's better to keep only the informational warnings. I keep seeing people in D.learn that miss warnings because they