Re: How DMD's -w *Prevents* Me From Seeing My Warnings

2010-02-12 Thread Nick Sabalausky
"Rainer Deyke" wrote in message news:hl4p26$5r...@digitalmars.com... > Nick Sabalausky wrote: >> 3. Now I have to go modify my build script and recompile just to get the >> output files that DMD arbitrarily refused to give me before (and then go >> edit my built script again to turn them back on)

Re: How DMD's -w *Prevents* Me From Seeing My Warnings

2010-02-12 Thread Stewart Gordon
Walter Bright wrote: Use make to do a regular build, and make warnings Problem with having them as two separate build modes for the whole project: Let's call my modules X and Y. X depends on a library module, call it Z. Z triggers a warning. I've ridden X of warnings, now it's

Re: How DMD's -w *Prevents* Me From Seeing My Warnings

2010-02-12 Thread BCS
Hello Nick, Neither can I, but how else is the compiler going to know where those boundaries are if not via a package/module name? The more I think about it, the more convinced I am that going by "included via -I or not?" is a bad idea, because even I've included third-party code without -I and

Re: Is there a modern GC for D?

2010-02-12 Thread Michel Fortin
On 2010-02-12 18:08:09 -0500, "Robert Jacques" said: On Wed, 10 Feb 2010 09:51:37 -0500, Leandro Lucarella wrote: There is a very simple concurrent GC model using fork()[1]. This is Unix only though (and very dependent on how efficiently fork() is implemented in the OS). I'm working (ver

Re: How DMD's -w *Prevents* Me From Seeing My Warnings

2010-02-12 Thread Rainer Deyke
Nick Sabalausky wrote: > 3. Now I have to go modify my build script and recompile just to get the > output files that DMD arbitrarily refused to give me before (and then go > edit my built script again to turn them back on). Which is not impossible, > but it's all for...what benefit exactly? Or

Re: How not to be seen!

2010-02-12 Thread Bane
Walter Bright Wrote: > Nick Sabalausky wrote: > > Another developer would never stop yapping about things that has nothing > > to do with work, but to top it off he couldn't go more than one sentence > > without using some form of the word "fuck" at least three times. > > Basically, I basically

Re: How DMD's -w *Prevents* Me From Seeing My Warnings

2010-02-12 Thread Walter Bright
Andrei Alexandrescu wrote: Do you even need to define FLAGS at the top of the file? No, but I don't particularly like implicitly defined variables!

Re: How DMD's -w *Prevents* Me From Seeing My Warnings

2010-02-12 Thread Andrei Alexandrescu
Walter Bright wrote: Nick Sabalausky wrote: Ok, that is a big improvement (thanks!!!), but this still remains: 1. I compile my program, with warnings as I always do (because I want to be told about them, and as early as possible). 2. I fix all my errors, but I get a warning in an external lib

Re: How DMD's -w *Prevents* Me From Seeing My Warnings

2010-02-12 Thread Nick Sabalausky
"BCS" wrote in message news:a6268ff102e38cc7a09ab4db...@news.digitalmars.com... > Hello Nick, > >> "BCS" wrote in message >> news:a6268ff102dc8cc7a05ac37b...@news.digitalmars.com... >>> I'd also not mind see an orthogonal way to suppress warnings in >>> libraries; maybe only do warnings in packa

Re: Is there a modern GC for D?

2010-02-12 Thread Robert Jacques
On Wed, 10 Feb 2010 09:51:37 -0500, Leandro Lucarella wrote: Robert Jacques, el 10 de febrero a las 01:03 me escribiste: -Getting concurrent GC code correct is very hard. Boehm's algorithm, for instance, looks extremely racy. There is a very simple concurrent GC model using fork()[1]. This

Re: How DMD's -w *Prevents* Me From Seeing My Warnings

2010-02-12 Thread Nick Sabalausky
"Walter Bright" wrote in message news:hl4krg$2uk...@digitalmars.com... > Nick Sabalausky wrote: >> Ok, that is a big improvement (thanks!!!), but this still remains: >> >> 1. I compile my program, with warnings as I always do (because I want to >> be told about them, and as early as possible). >

Re: How DMD's -w *Prevents* Me From Seeing My Warnings

2010-02-12 Thread Michel Fortin
On 2010-02-12 17:20:33 -0500, BCS said: I'd also not mind see an orthogonal way to suppress warnings in libraries; maybe only do warnings in packages not reached via include paths give via -I I think the simplest thing would be to get warnings only for the code you're actually compiling. If

Re: How DMD's -w *Prevents* Me From Seeing My Warnings

2010-02-12 Thread BCS
Hello Nick, "BCS" wrote in message news:a6268ff102dc8cc7a05ac37b...@news.digitalmars.com... Hello Nick, You may as well just write the output files anyway and save people the bother of working around it. Vote ++; Or maybe have "-w+" for the old fail-fast way, "-w" for the new way and "-w

Re: Array collection ?

2010-02-12 Thread Daniel Keep
torhu wrote: > ... > > struct Foo > { > int month; // or char[] month, or an enum > double profit; > double expenses; > } Bad torhu: never use doubles for currency values!

Re: Decimal separator

2010-02-12 Thread BCS
Hello Nrgyzer, Hello everyone, I'm trying to split an integer into a integer with decimal points (or char[] with decimal points). I already know that I can do this with std.format.doFormat() but I don't know how I can use this to convert my int (for example... 1) to 10,000. I hope anyone c

Re: How DMD's -w *Prevents* Me From Seeing My Warnings

2010-02-12 Thread Nick Sabalausky
"BCS" wrote in message news:a6268ff102dc8cc7a05ac37b...@news.digitalmars.com... > Hello Nick, > >> You may as well just write the output files anyway and >> save people the bother of working around it. > > Vote ++; > > Or maybe have "-w+" for the old fail-fast way, "-w" for the new way and > "-w

Re: How DMD's -w *Prevents* Me From Seeing My Warnings

2010-02-12 Thread Walter Bright
Nick Sabalausky wrote: Ok, that is a big improvement (thanks!!!), but this still remains: 1. I compile my program, with warnings as I always do (because I want to be told about them, and as early as possible). 2. I fix all my errors, but I get a warning in an external library. 3. Now I have to

Re: How DMD's -w *Prevents* Me From Seeing My Warnings

2010-02-12 Thread BCS
Hello Nick, You may as well just write the output files anyway and save people the bother of working around it. Vote ++; Or maybe have "-w+" for the old fail-fast way, "-w" for the new way and "-w-" for the "show them and ignore them" way. I'd also not mind see an orthogonal way to suppres

Re: How not to be seen!

2010-02-12 Thread Walter Bright
Nick Sabalausky wrote: Another developer would never stop yapping about things that has nothing to do with work, but to top it off he couldn't go more than one sentence without using some form of the word "fuck" at least three times. Basically, I basically knew basically a basically developer

Re: How DMD's -w *Prevents* Me From Seeing My Warnings

2010-02-12 Thread Nick Sabalausky
"Walter Bright" wrote in message news:hl4hkj$2n7...@digitalmars.com... > Nick Sabalausky wrote: >> Royal PITA every single time. (And a <20 line trivial fix has been >> sitting in bugzilla for nearly a year, #2567, hell, I'll update and >> resubmit if that'll help get it in.) > > This is a diff

Re: How not to be seen!

2010-02-12 Thread Nick Sabalausky
"Manfred_Nowak" wrote in message news:xns9d1ddc8ace272svv1999hotmail...@65.204.18.192... > http://thedailywtf.com/Articles/Small-But-Rapidly-Growing.aspx > > -manfred Sounds a lot like a place I worked at a few years ago (let's just say: "recruiter software" and "mst"). This line in particular

Re: How DMD's -w *Prevents* Me From Seeing My Warnings

2010-02-12 Thread Walter Bright
Nick Sabalausky wrote: Royal PITA every single time. (And a <20 line trivial fix has been sitting in bugzilla for nearly a year, #2567, hell, I'll update and resubmit if that'll help get it in.) This is a different way to address the issue. Warnings do not halt parsing/semantic passes, but dm

OT: How not to be seen!

2010-02-12 Thread Manfred_Nowak
http://thedailywtf.com/Articles/Small-But-Rapidly-Growing.aspx -manfred

Re: Type system plug-ins [Was: Re: Coverity tool]

2010-02-12 Thread Ali Çehreli
bearophile wrote: > Then in C++ the syntax of final class is not nice: > class __attribute__((user("final"))) MyClass { To be pedantic, C++ does not have final classes. That's a compiler extension. Ali

Re: Type system plug-ins

2010-02-12 Thread bearophile
retard Wrote: > That kind of code is rather clumsy. That code is probably not the best possible way to express those constraints. But they have a good enough JavaScript JIT compiler, they know JavaScript well, so using JS for that purpose can be good enough [TM] and it can be better than not be

Re: Type system plug-ins [Was: Re: Coverity tool]

2010-02-12 Thread retard
Fri, 12 Feb 2010 12:07:16 -0500, bearophile wrote: > /** > * Helper function: returns true if a class is marked with the "final" > attribute. */ > function isFinal(c) { > if (!c.attributes) > return false; > for each (let a in c.attributes) > if (a.name == 'user' && a.value == 'final

Re: Decimal separator

2010-02-12 Thread Justin Whear
nrgyzer Wrote: > Hello everyone, > > I'm trying to split an integer into a integer with decimal points (or char[] > with decimal points). I already know that I can do this with > std.format.doFormat() but I don't know how I can use this to convert my int > (for example... 1) to 10,000. We

Re: Array collection ?

2010-02-12 Thread torhu
On 10.02.2010 07:16, GG wrote: Actually I use an associative array with name as index, to contain different data but it allows only string type. It forces me to cast all time. ex: string[char[]][int] a; a[0]["Month"] = "Jan"; a[0]["Profit"] = to!string(1000); // when I want use this as int, I u

Decimal separator

2010-02-12 Thread nrgyzer
Hello everyone, I'm trying to split an integer into a integer with decimal points (or char[] with decimal points). I already know that I can do this with std.format.doFormat() but I don't know how I can use this to convert my int (for example... 1) to 10,000. I hope anyone can help me :)

Re: Type system plug-ins [Was: Re: Coverity tool]

2010-02-12 Thread bearophile
I've just found a nice article about this topic, "LCA: Static analysis with GCC plugins", by Jonathan Corbet: http://lwn.net/Articles/370717/ Beside allowing plug-ins, they have done something else to GCC: >The ability to attach attributes to objects in the compiled code makes it easy >to pass h

Re: D on Reddit!

2010-02-12 Thread Bane
Nick Sabalausky Wrote: > "Bane" wrote in message > news:hl0ku9$vd...@digitalmars.com... > > > > I hope that D's users club will grow over time, in spite of heavy > > oposition of number mature and popular languages in same category. What I > > believe is that existing club members are dedicate

Re: Visual Studio plugin

2010-02-12 Thread Masahiro Nakagawa
rsl's blog is here: http://d.hatena.ne.jp/riesling/ But, he does not update this weblog and his website is 404. There is no current way to contact :( On Fri, 05 Feb 2010 18:42:14 +0900, smartmobili wrote: Hi, From old posts I know that a japanese guy started to developp a Visual Stud