Re: The Thermopylae excerpt of TDPL available online

2009-10-30 Thread Andrei Alexandrescu
Saaa wrote: Could anybody clear these up for me? p16. Is there anything other than the random values, unsafe about void assignment? I'd put your feedback on my pile of things to do, but now that you ask, I made this change to the incriminated paragraph: === Such uninitialized

Re: The Thermopylae excerpt of TDPL available online

2009-10-30 Thread Andrei Alexandrescu
Andrei Alexandrescu wrote: Saaa wrote: Could anybody clear these up for me? p16. Is there anything other than the random values, unsafe about void assignment? I'd put your feedback on my pile of things to do, but now that you ask, I made this change to the incriminated paragraph:

Re: The Thermopylae excerpt of TDPL available online

2009-10-30 Thread Andrei Alexandrescu
Saaa wrote: Andrei Alexandrescu wrote: Andrei Alexandrescu wrote: Saaa wrote: Could anybody clear these up for me? p16. Is there anything other than the random values, unsafe about void assignment? I'd put your feedback on my pile of things to do, but now that you ask, I made this change

Safe Systems from Unreliable Parts

2009-10-30 Thread Walter Bright
This is an important topic for anyone who is building software systems that, if they fail, can cause injury or large property damage. http://www.reddit.com/r/programming/comments/9z811/safe_systems_from_unreliable_parts/

Re: Success! (Precisely)

2009-10-30 Thread Walter Bright
dsimcha wrote: 2. I'm thinking about how to write the bitmask templates. In the next release of DMD, when static arrays are value types and returnable from functions, will they be returnable from functions in CTFE? Yes.

Re: Targeting C

2009-10-30 Thread rmcguire
Andrei Alexandrescu seewebsiteforem...@erdani.org wrote: grauzone wrote: Andrei Alexandrescu wrote: Pelle Månsson wrote: Andrei Alexandrescu wrote: Yigal Chripun wrote: On 23/10/2009 13:02, bearophile wrote: Chris Nicholson-Sauls: I prefer this (Scala): list = list ++ (0 to 10)

Re: TDPL reaches Thermopylae level

2009-10-30 Thread Lars T. Kyllingstad
Nick Sabalausky wrote: Chris Nicholson-Sauls ibisbase...@gmail.com wrote in message news:hcctuf$140...@digitalmars.com... Granted LTR is common enough to be expectable and acceptable. To be perfectly honest, I don't believe I have *ever* even used wchar/wstring. Char/string gosh yes;

Re: The Thermopylae excerpt of TDPL available online

2009-10-30 Thread Lars T. Kyllingstad
Leandro Lucarella wrote: Walter Bright, el 29 de octubre a las 16:06 me escribiste: Lars T. Kyllingstad wrote: What I cannot for the life of me understand is WHY the double underscores? What's wrong with just traits? Because D needed the feature, and it wasn't clear what a good syntax for it

Re: Is it possible that the Karmic upgrade interferes with dmd?

2009-10-30 Thread Don
Michael Mittner wrote: Walter Bright wrote: It could be that the C library routine strtold(), which the lexer relies on, changed. That has nothing to do with linking. Hmm. This is where dmd struggles: 641:[0x1.a5f1c2eb3fe4efp+73, 0x1.A5F1C2EB3FE4EFp-1, 74],// normal I have no

Re: The Thermopylae excerpt of TDPL available online

2009-10-30 Thread Lars T. Kyllingstad
Don wrote: Lars T. Kyllingstad wrote: Denis Koroskin wrote: On Thu, 29 Oct 2009 15:12:51 +0300, Lars T. Kyllingstad pub...@kyllingen.nospamnet wrote: Jason House wrote: Andrei Alexandrescu Wrote: It's a rough rough draft, but one for the full chapter on arrays, associative arrays, and

Re: associative arrays: iteration is finally here

2009-10-30 Thread Pelle Månsson
Nick Sabalausky wrote: Pelle Månsson pelle.mans...@gmail.com wrote in message news:hcaaro$15e...@digitalmars.com... I think foreach should be consistent with opIn, that is, if (foo in aa) { //it is in the aa. foreach (f; aa) { // loop over each item in the aa //I expect foo to show up in

Re: Permitted locations of a version condition

2009-10-30 Thread Rainer Deyke
Phil Deets wrote: mixin(qENUM enum Tag { A, B, ENUM~(Version!(symbol)?qENUM C, D, ENUM:)~qENUM E, } ENUM); That's not pretty, but it's good enough for me; so I'll probably not do any compiler hacking. Not pretty is putting it very lightly. What's happening in the D

Re: Is it possible that the Karmic upgrade interferes with dmd?

2009-10-30 Thread Michael Mittner
Don wrote: That's odd. Please try adding an 'L' to end of each of each constant. [0x1.a5f1c2eb3fe4efp+73L, 0x1.A5F1C2EB3FE4EFp-1L, 74], Oh, I'm really sorry, I copied the wrong line (this was 640). Here's the guilty line (641, this time for real): [0x1.fa01712e8f0471ap-1064,

Re: The Thermopylae excerpt of TDPL available online

2009-10-30 Thread Don
Lars T. Kyllingstad wrote: Don wrote: Lars T. Kyllingstad wrote: Denis Koroskin wrote: On Thu, 29 Oct 2009 15:12:51 +0300, Lars T. Kyllingstad pub...@kyllingen.nospamnet wrote: Jason House wrote: Andrei Alexandrescu Wrote: It's a rough rough draft, but one for the full chapter on arrays,

Re: Permitted locations of a version condition

2009-10-30 Thread Kagamin
Rainer Deyke Wrote: - However, the language has other features that can be abused to provide the functionality in a syntactically ugly way. - D programmers use these language features to write powerful but ugly code. There was a word that macros are not needed because string mixins are

Re: The Thermopylae excerpt of TDPL available online

2009-10-30 Thread bearophile
Don: traits.compiles(XXX) traits.typeid(TTT) traits.stringof(T) traits.allMembers(T) traits.error(message); Cute. Simpler alternative, the dot isn't necessary: traits_compiles(XXX) traits_typeid(TTT) traits_stringof(T) traits_allmembers(T) traits_error(message); Or, more uniformly (all D

Re: The Thermopylae excerpt of TDPL available online

2009-10-30 Thread Danny Wilson
Op Fri, 30 Oct 2009 11:44:08 +0100 schreef bearophile bearophileh...@lycos.com: Simpler alternative, the dot isn't necessary: traits_compiles(XXX) traits_typeid(TTT) traits_stringof(T) traits_allmembers(T) traits_error(message); Not nice. Bad.

Re: Safe Systems from Unreliable Parts

2009-10-30 Thread grauzone
Walter Bright wrote: This is an important topic for anyone who is building software systems that, if they fail, can cause injury or large property damage. http://www.reddit.com/r/programming/comments/9z811/safe_systems_from_unreliable_parts/ Clicking on the link linked by your link, I get:

Re: Followup Poll: Why tango trunk instead of 0.99.8?

2009-10-30 Thread grauzone
Nick Sabalausky wrote: If you use (or admin a project that requires) Tango trunk instead of 0.99.8: Why? (Select all that apply) http://www.micropoll.com/akira/mpview/704493-212991 The new stack tracing feature is essential. Normally you'd use a debugger, but we're talking about D here.

Re: Followup Poll: Why tango trunk instead of 0.99.8?

2009-10-30 Thread torhu
On 30.10.2009 12:16, grauzone wrote: The new stack tracing feature is essential. Normally you'd use a debugger, but we're talking about D here. Same goes for me. I use the oldest revision where the stack tracing works, which is 4498. Plus a patch to make it work on Vista.

Re: Safe Systems from Unreliable Parts

2009-10-30 Thread torhu
On 30.10.2009 12:16, grauzone wrote: Walter Bright wrote: This is an important topic for anyone who is building software systems that, if they fail, can cause injury or large property damage. http://www.reddit.com/r/programming/comments/9z811/safe_systems_from_unreliable_parts/ Clicking

Re: Safe Systems from Unreliable Parts

2009-10-30 Thread Lars T. Kyllingstad
grauzone wrote: Walter Bright wrote: This is an important topic for anyone who is building software systems that, if they fail, can cause injury or large property damage. http://www.reddit.com/r/programming/comments/9z811/safe_systems_from_unreliable_parts/ Clicking on the link linked by

Re: Success! (Precisely)

2009-10-30 Thread Jacob Carlborg
On 10/30/09 06:08, dsimcha wrote: After a few evenings of serious hacking, I've integrated precise heap scanning into the GC. Right now, I still need to test it better and debug it, but it at least basically works. I also still need to write the templates to generate bit masks at compile time,

Re: The Thermopylae excerpt of TDPL available online

2009-10-30 Thread Don
bearophile wrote: Don: traits.compiles(XXX) traits.typeid(TTT) traits.stringof(T) traits.allMembers(T) traits.error(message); Cute. Simpler alternative, the dot isn't necessary: traits_compiles(XXX) traits_typeid(TTT) traits_stringof(T) traits_allmembers(T) traits_error(message); That is

Re: The Thermopylae excerpt of TDPL available online

2009-10-30 Thread Lars T. Kyllingstad
Don wrote: Lars T. Kyllingstad wrote: Don wrote: Lars T. Kyllingstad wrote: Denis Koroskin wrote: On Thu, 29 Oct 2009 15:12:51 +0300, Lars T. Kyllingstad pub...@kyllingen.nospamnet wrote: Jason House wrote: Andrei Alexandrescu Wrote: It's a rough rough draft, but one for the full

Re: Safe Systems from Unreliable Parts

2009-10-30 Thread Jason House
Walter Bright Wrote: This is an important topic for anyone who is building software systems that, if they fail, can cause injury or large property damage. http://www.reddit.com/r/programming/comments/9z811/safe_systems_from_unreliable_parts/ Downvoted for poor links :(

Re: The Thermopylae excerpt of TDPL available online

2009-10-30 Thread Jason House
Andrei Alexandrescu Wrote: Jason House wrote: Andrei Alexandrescu Wrote: It's a rough rough draft, but one for the full chapter on arrays, associative arrays, and strings. http://erdani.com/d/thermopylae.pdf Any feedback is welcome. Thanks! I still think is expressions

Re: Safe Systems from Unreliable Parts

2009-10-30 Thread Justin Johansson
Jason House Wrote: Walter Bright Wrote: This is an important topic for anyone who is building software systems that, if they fail, can cause injury or large property damage. http://www.reddit.com/r/programming/comments/9z811/safe_systems_from_unreliable_parts/ Downvoted for poor

Re: The Thermopylae excerpt of TDPL available online

2009-10-30 Thread Saaa
Could anybody clear these up for me? p16. Is there anything other than the random values, unsafe about void assignment? p18. What is unsafe about implicit conversion of static to dynamic array? Meaning getting a dynamic array pointing to a stack allocated array. Any

Re: Safe Systems from Unreliable Parts

2009-10-30 Thread #ponce
Clicking on the link linked by your link, I get: You are not authorised to view this resource. You need to login. The same links worked 3 hours ago.

Re: The Thermopylae excerpt of TDPL available online

2009-10-30 Thread Justin Johansson
Max Samukha Wrote: On Thu, 29 Oct 2009 13:30:35 -0500, Andrei Alexandrescu seewebsiteforem...@erdani.org wrote: It's me as well. The decision didn't go without a fight (I had your viewpoint and Walter didn't). He convinced me with two arguments. One is that 90% of the time you actually

Re: Success! (Precisely)

2009-10-30 Thread dsimcha
== Quote from Jacob Carlborg (d...@me.com)'s article On 10/30/09 06:08, dsimcha wrote: After a few evenings of serious hacking, I've integrated precise heap scanning into the GC. Right now, I still need to test it better and debug it, but it at least basically works. I also still need

Re: The Thermopylae excerpt of TDPL available online

2009-10-30 Thread Leandro Lucarella
Justin Johansson, el 30 de octubre a las 08:42 me escribiste: Actually, I think I like that better than 'traits'. -Lars I'm in agreement with whoever suggested 'meta' or just about anything else except 'traits'. 'meta', whilst perhaps an overloaded keyword, is still much more

Re: The Thermopylae excerpt of TDPL available online

2009-10-30 Thread Leandro Lucarella
Lars T. Kyllingstad, el 30 de octubre a las 08:55 me escribiste: Leandro Lucarella wrote: Walter Bright, el 29 de octubre a las 16:06 me escribiste: Lars T. Kyllingstad wrote: What I cannot for the life of me understand is WHY the double underscores? What's wrong with just traits? Because D

Re: Success! (Precisely)

2009-10-30 Thread Andrei Alexandrescu
dsimcha wrote: After a few evenings of serious hacking, I've integrated precise heap scanning into the GC. Right now, I still need to test it better and debug it, but it at least basically works. I also still need to write the templates to generate bit masks at compile time, but this is a

Re: TDPL reaches Thermopylae level

2009-10-30 Thread Andrei Alexandrescu
Lars T. Kyllingstad wrote: Nick Sabalausky wrote: Chris Nicholson-Sauls ibisbase...@gmail.com wrote in message news:hcctuf$140...@digitalmars.com... Granted LTR is common enough to be expectable and acceptable. To be perfectly honest, I don't believe I have *ever* even used wchar/wstring.

Re: Followup Poll: Why tango trunk instead of 0.99.8?

2009-10-30 Thread Leandro Lucarella
Nick Sabalausky, el 29 de octubre a las 21:18 me escribiste: If you use (or admin a project that requires) Tango trunk instead of 0.99.8: Why? (Select all that apply) http://www.micropoll.com/akira/mpview/704493-212991 It's missing an answer: Tango doesn't release fast enough and doesn't

Re: Success! (Precisely)

2009-10-30 Thread Leandro Lucarella
dsimcha, el 30 de octubre a las 05:08 me escribiste: After a few evenings of serious hacking, I've integrated precise heap scanning into the GC. Right now, I still need to test it better and debug it, but it at least basically works. I also still need to write the templates to generate bit

Re: Success! (Precisely)

2009-10-30 Thread dsimcha
== Quote from Andrei Alexandrescu (seewebsiteforem...@erdani.org)'s article This is great news. Hopefully you'll be willing to integrate your code with druntime. That was kind of the point all along. I'll file it in Bugzilla after I finish the bitmask generation, testing and debugging.

Re: The Thermopylae excerpt of TDPL available online

2009-10-30 Thread Andrei Alexandrescu
Saaa wrote: Could anybody clear these up for me? p16. Is there anything other than the random values, unsafe about void assignment? I'd put your feedback on my pile of things to do, but now that you ask, I made this change to the incriminated paragraph: === Such uninitialized

Re: The Thermopylae excerpt of TDPL available online

2009-10-30 Thread Andrei Alexandrescu
Andrei Alexandrescu wrote: Saaa wrote: Could anybody clear these up for me? p16. Is there anything other than the random values, unsafe about void assignment? I'd put your feedback on my pile of things to do, but now that you ask, I made this change to the incriminated paragraph:

Re: The Thermopylae excerpt of TDPL available online

2009-10-30 Thread Don
Leandro Lucarella wrote: Justin Johansson, el 30 de octubre a las 08:42 me escribiste: Actually, I think I like that better than 'traits'. -Lars I'm in agreement with whoever suggested 'meta' or just about anything else except 'traits'. 'meta', whilst perhaps an overloaded keyword, is still

Re: Success! (Precisely)

2009-10-30 Thread bearophile
Leandro Lucarella: If somebody have this, I'm very interested too. Two D translations of the Olden Benchmarks, more to come: http://www.fantascienza.net/leonardo/js/index.html Bye, bearophile

Re: Success! (Precisely)

2009-10-30 Thread dsimcha
== Quote from bearophile (bearophileh...@lycos.com)'s article Leandro Lucarella: If somebody have this, I'm very interested too. Two D translations of the Olden Benchmarks, more to come: http://www.fantascienza.net/leonardo/js/index.html Bye, bearophile These might be worth a try, but

Re: Success! (Precisely)

2009-10-30 Thread bearophile
dsimcha: These might be worth a try, but they're more benchmarks for performance than tests of correctness, if I understand correctly. Yes, I understand. What kind of code are you looking for then? Bye, bearophile

Re: Permitted locations of a version condition

2009-10-30 Thread Stewart Gordon
Rainer Deyke wrote: snip What makes this case particularly bad is that Walter deliberate chose to limit the power of the 'version' construct in order to prevent overly complex read-only code. Actually, AIUI it's just one of many things he did to eliminate the syntactic fragility that C++ has

Re: Success! (Precisely)

2009-10-30 Thread dsimcha
== Quote from bearophile (bearophileh...@lycos.com)'s article dsimcha: These might be worth a try, but they're more benchmarks for performance than tests of correctness, if I understand correctly. Yes, I understand. What kind of code are you looking for then? Bye, bearophile I was just

Re: Success! (Precisely)

2009-10-30 Thread bearophile
Yes, I understand. What kind of code are you looking for then? You have already answered, in a way. You need complex code that runs for a lot of time, while keeping the total amount of memory used constant. You also surely need some synthetic tests, to spot eventual bugs better. I don't know

Re: Success! (Precisely)

2009-10-30 Thread Denis Koroskin
On Fri, 30 Oct 2009 08:08:10 +0300, dsimcha dsim...@yahoo.com wrote: After a few evenings of serious hacking, I've integrated precise heap scanning into the GC. Right now, I still need to test it better and debug it, but it at least basically works. I also still need to write the

Re: The Thermopylae excerpt of TDPL available online

2009-10-30 Thread Andrei Alexandrescu
Jason House wrote: Andrei Alexandrescu Wrote: Jason House wrote: Andrei Alexandrescu Wrote: It's a rough rough draft, but one for the full chapter on arrays, associative arrays, and strings. http://erdani.com/d/thermopylae.pdf Any feedback is welcome. Thanks! I still think is

Re: The demise of T[new]

2009-10-30 Thread Stewart Gordon
I've just caught up on this thread. Built-in dynamic arrays have been one of D's major features since the early days. Now you're planning to remove this feature? http://www.digitalmars.com/d/1.0/builtin.html states that the C++ STL has many types that have been created to compensate for the

Re: Success! (Precisely)

2009-10-30 Thread dsimcha
== Quote from Denis Koroskin (2kor...@gmail.com)'s article On Fri, 30 Oct 2009 08:08:10 +0300, dsimcha dsim...@yahoo.com wrote: After a few evenings of serious hacking, I've integrated precise heap scanning into the GC. Right now, I still need to test it better and debug it, but it at

Re: Targeting C

2009-10-30 Thread Andrei Alexandrescu
rmcguire wrote: Andrei Alexandrescu seewebsiteforem...@erdani.org wrote: grauzone wrote: Andrei Alexandrescu wrote: Pelle Månsson wrote: Andrei Alexandrescu wrote: Yigal Chripun wrote: On 23/10/2009 13:02, bearophile wrote: Chris Nicholson-Sauls: I prefer this (Scala): list = list ++

Re: Targeting C

2009-10-30 Thread Denis Koroskin
On Fri, 30 Oct 2009 10:05:27 +0300, rmcguire rjmcgu...@gmail.com wrote: Andrei Alexandrescu seewebsiteforem...@erdani.org wrote: grauzone wrote: Andrei Alexandrescu wrote: Pelle Månsson wrote: Andrei Alexandrescu wrote: Yigal Chripun wrote: On 23/10/2009 13:02, bearophile wrote: Chris

Re: The Thermopylae excerpt of TDPL available online

2009-10-30 Thread Saaa
Andrei Alexandrescu wrote: Andrei Alexandrescu wrote: Saaa wrote: Could anybody clear these up for me? p16. Is there anything other than the random values, unsafe about void assignment? I'd put your feedback on my pile of things to do, but now that you ask, I made this change to the

Re: The Thermopylae excerpt of TDPL available online

2009-10-30 Thread Andrei Alexandrescu
Saaa wrote: Andrei Alexandrescu wrote: Andrei Alexandrescu wrote: Saaa wrote: Could anybody clear these up for me? p16. Is there anything other than the random values, unsafe about void assignment? I'd put your feedback on my pile of things to do, but now that you ask, I made this change

Re: The Thermopylae excerpt of TDPL available online

2009-10-30 Thread Jason House
Don Wrote: Leandro Lucarella wrote: Justin Johansson, el 30 de octubre a las 08:42 me escribiste: Actually, I think I like that better than 'traits'. -Lars I'm in agreement with whoever suggested 'meta' or just about anything else except 'traits'. 'meta', whilst perhaps an

Re: Success! (Precisely)

2009-10-30 Thread Jacob Carlborg
On 10/30/09 14:29, dsimcha wrote: == Quote from Jacob Carlborg (d...@me.com)'s article On 10/30/09 06:08, dsimcha wrote: After a few evenings of serious hacking, I've integrated precise heap scanning into the GC. Right now, I still need to test it better and debug it, but it at least

Re: TDPL reaches Thermopylae level

2009-10-30 Thread Justin Johansson
Andrei Alexandrescu Wrote: Lars T. Kyllingstad wrote: Nick Sabalausky wrote: Chris Nicholson-Sauls ibisbase...@gmail.com wrote in message news:hcctuf$140...@digitalmars.com... Granted LTR is common enough to be expectable and acceptable. To be perfectly honest, I don't believe I

Re: Success! (Precisely)

2009-10-30 Thread Tim
Denis Koroskin Wrote: On Fri, 30 Oct 2009 08:08:10 +0300, dsimcha dsim...@yahoo.com wrote: After a few evenings of serious hacking, I've integrated precise heap scanning into the GC. Right now, I still need to test it better and debug it, but it at least basically works. I also

Re: Success! (Precisely)

2009-10-30 Thread Craig Black
dsimcha dsim...@yahoo.com wrote in message news:hcdsbq$4i...@digitalmars.com... After a few evenings of serious hacking, I've integrated precise heap scanning into the GC. Awesome! Thank you so much for doing this. Does the GC have knowledge of pointers on both the stack as well as the

Re: Success! (Precisely)

2009-10-30 Thread dsimcha
== Quote from Craig Black (craigbla...@cox.net)'s article dsimcha dsim...@yahoo.com wrote in message news:hcdsbq$4i...@digitalmars.com... After a few evenings of serious hacking, I've integrated precise heap scanning into the GC. Awesome! Thank you so much for doing this. Does the GC

Re: Success! (Precisely)

2009-10-30 Thread dsimcha
== Quote from Craig Black (craigbla...@cox.net)'s article Does the GC have knowledge of pointers on both the stack as well as the heap? Also, probably most of the problem with false pointers is on the heap anyhow. The stack is usually on the order of a few 10s of kilobytes, the static data

Re: The Thermopylae excerpt of TDPL available online

2009-10-30 Thread Robert Clipsham
Don wrote: I'm starting to think we need a separate namespace for the CT stuff. D.compiles(XXX) D.typeof(foo) D.stringof(T) D.allMembers(T) That's not bad. Can't be 'D', though, has to look like a keyword. Maybe something like 'traits' instead. In exchange, get rid of the

Getting class member offsets at compile time

2009-10-30 Thread dsimcha
Is there any **good** way to iterate over the members fields of a class at compile time via templates or CTFE? With structs you can do: void someCtfeFunction(Struct)() { foreach(tupleIndex, elem; Struct.init.tupleof) { // Do stuff. } } This doesn't work for classes because using

Re: Success! (Precisely)

2009-10-30 Thread Craig Black
dsimcha dsim...@yahoo.com wrote in message news:hcfu9t$9d...@digitalmars.com... == Quote from Craig Black (craigbla...@cox.net)'s article dsimcha dsim...@yahoo.com wrote in message news:hcdsbq$4i...@digitalmars.com... After a few evenings of serious hacking, I've integrated precise heap

Re: Success! (Precisely)

2009-10-30 Thread Craig Black
dsimcha dsim...@yahoo.com wrote in message news:hcfur2$av...@digitalmars.com... == Quote from Craig Black (craigbla...@cox.net)'s article Does the GC have knowledge of pointers on both the stack as well as the heap? Also, probably most of the problem with false pointers is on the heap

Re: TDPL reaches Thermopylae level

2009-10-30 Thread Andrei Alexandrescu
Justin Johansson wrote: Andrei Alexandrescu Wrote: Lars T. Kyllingstad wrote: Nick Sabalausky wrote: Chris Nicholson-Sauls ibisbase...@gmail.com wrote in message news:hcctuf$140...@digitalmars.com... Granted LTR is common enough to be expectable and acceptable. To be perfectly honest, I

Re: The Thermopylae excerpt of TDPL available online

2009-10-30 Thread Nick Sabalausky
Robert Clipsham rob...@octarineparrot.com wrote in message news:hcg0qr$fc...@digitalmars.com... Don wrote: I'm starting to think we need a separate namespace for the CT stuff. D.compiles(XXX) D.typeof(foo) D.stringof(T) D.allMembers(T) That's not bad. Can't be 'D', though, has

Re: Linking problem with QtD

2009-10-30 Thread Eldar Insafutdinov
Qian Xu Wrote: albatroz Wrote: Eldar Insafutdinov wrote: Qian Xu Wrote: Hi All, I have almost built the first demo, but ... The components I have are as follows: 1. QtK SDK (LGPL edition) 4.5.3 2. the latest svn version of QtD (trunk-r309.zip) 3. DMD 1.050

Re: Linking problem with QtD

2009-10-30 Thread Qian Xu
Eldar Insafutdinov wrote: I saw you made the reference to this link (http://www.dsource.org/projects/qtd/wiki/MacCaseStudy which contains this command line option, but still I don't understand why you get undefined symbols like QPrintDialog::options() const which belongs to libQtGui.

Re: Linking problem with QtD

2009-10-30 Thread Eldar Insafutdinov
Qian Xu Wrote: Eldar Insafutdinov wrote: All Qt versions keep forward binary compatibility and a full compatibility within a major version, 4.5.3 contains only bug fixes compared to 4.5.2. Version from code.google.com is a way to old, so I would not even consider it. Have you

Mixins output handling

2009-10-30 Thread Zarathustra
Is there a some compiler switch to produce mixins output. I mean [d_file_with_mixins] - [d_file_without_mixins].

Re: Mixins output handling

2009-10-30 Thread Trass3r
Zarathustra schrieb: Is there a some compiler switch to produce mixins output. I mean [d_file_with_mixins] - [d_file_without_mixins]. No, Descent has such a feature though.

Re: version specific enum members

2009-10-30 Thread Phil Deets
On Fri, 30 Oct 2009 06:38:44 -0500, Ary Borenszweig a...@esperanto.org.ar wrote: Phil Deets wrote: On Thu, 29 Oct 2009 18:28:12 -0500, Ary Borenszweig a...@esperanto.org.ar wrote: Ellery Newcomer wrote: Unfortunately, that's going to be about the best you can do, unless you're willing

[Issue 3449] const and invariant struct members do not behave according to spec

2009-10-30 Thread d-bugmail
http://d.puremagic.com/issues/show_bug.cgi?id=3449 --- Comment #2 from Lars T. Kyllingstad bugzi...@kyllingen.net 2009-10-29 23:35:28 PDT --- (In reply to comment #1) (In reply to comment #0) and in the case of const it is even considered well-defined behaviour to change their value

[Issue 874] Bad codegen: wrong value variable in tuple foreach, D1 only

2009-10-30 Thread d-bugmail
http://d.puremagic.com/issues/show_bug.cgi?id=874 Don clugd...@yahoo.com.au changed: What|Removed |Added Summary|Incorrect codegen with |Bad codegen: wrong value

[Issue 874] Bad codegen: wrong value variable in tuple foreach, D1 only

2009-10-30 Thread d-bugmail
http://d.puremagic.com/issues/show_bug.cgi?id=874 Don clugd...@yahoo.com.au changed: What|Removed |Added Keywords||patch --- Comment #4 from

[Issue 3442] scope(exit) Problem

2009-10-30 Thread d-bugmail
http://d.puremagic.com/issues/show_bug.cgi?id=3442 Don clugd...@yahoo.com.au changed: What|Removed |Added CC||clugd...@yahoo.com.au ---

[Issue 3449] const and invariant struct members do not behave according to spec

2009-10-30 Thread d-bugmail
http://d.puremagic.com/issues/show_bug.cgi?id=3449 --- Comment #3 from Stewart Gordon s...@iname.com 2009-10-30 06:39:03 PDT --- (In reply to comment #2) (In reply to comment #1) (In reply to comment #0) and in the case of const it is even considered well-defined behaviour to change their

[Issue 3407] [tdpl] Compiling with -safe -release must keep all bound checks

2009-10-30 Thread d-bugmail
http://d.puremagic.com/issues/show_bug.cgi?id=3407 Don clugd...@yahoo.com.au changed: What|Removed |Added CC||clugd...@yahoo.com.au ---

[Issue 3407] [tdpl] Compiling with -safe -release must keep all bound checks

2009-10-30 Thread d-bugmail
http://d.puremagic.com/issues/show_bug.cgi?id=3407 --- Comment #2 from Andrei Alexandrescu and...@metalanguage.com 2009-10-30 07:55:56 PDT --- (In reply to comment #1) I don't understand the reasoning behind this. The primary reason you use -release is to turn off bounds checking, because

[Issue 3407] [tdpl] Compiling with -safe -release must keep all bound checks

2009-10-30 Thread d-bugmail
http://d.puremagic.com/issues/show_bug.cgi?id=3407 --- Comment #3 from Don clugd...@yahoo.com.au 2009-10-30 08:38:34 PDT --- -safe: Do whatever the hell it takes to make sure my program never has a memory error -release: I've tested and debugged my programs, eliminate runtime design

[Issue 3407] [tdpl] Compiling with -safe -release must keep all bound checks

2009-10-30 Thread d-bugmail
http://d.puremagic.com/issues/show_bug.cgi?id=3407 --- Comment #4 from Andrei Alexandrescu and...@metalanguage.com 2009-10-30 08:51:31 PDT --- (In reply to comment #3) -safe: Do whatever the hell it takes to make sure my program never has a memory error -release: I've tested and

[Issue 3455] New: Some Unicode characters not allowed in identifiers

2009-10-30 Thread d-bugmail
http://d.puremagic.com/issues/show_bug.cgi?id=3455 Summary: Some Unicode characters not allowed in identifiers Product: D Version: unspecified Platform: Other OS/Version: Linux Status: NEW Severity: normal

[Issue 3455] Some Unicode characters not allowed in identifiers

2009-10-30 Thread d-bugmail
http://d.puremagic.com/issues/show_bug.cgi?id=3455 Matti Niemenmaa matti.niemenmaa+dbugzi...@iki.fi changed: What|Removed |Added Keywords||spec

[Issue 3407] [tdpl] Compiling with -safe -release must keep all bound checks

2009-10-30 Thread d-bugmail
http://d.puremagic.com/issues/show_bug.cgi?id=3407 David Simcha dsim...@yahoo.com changed: What|Removed |Added CC||dsim...@yahoo.com ---

[Issue 3456] New: ref foreach over array in CTFE silently fails.

2009-10-30 Thread d-bugmail
http://d.puremagic.com/issues/show_bug.cgi?id=3456 Summary: ref foreach over array in CTFE silently fails. Product: D Version: 2.035 Platform: Other OS/Version: Windows Status: NEW Keywords: diagnostic, wrong-code

[Issue 3455] Some Unicode characters not allowed in identifiers

2009-10-30 Thread d-bugmail
http://d.puremagic.com/issues/show_bug.cgi?id=3455 --- Comment #2 from Andrei Alexandrescu and...@metalanguage.com 2009-10-30 11:40:05 PDT --- (In reply to comment #1) As http://www.digitalmars.com/d/1.0/lex.html#identifier very clearly states, the allowed characters in identifiers are those

[Issue 3407] [tdpl] Compiling with -safe -release must keep all bound checks

2009-10-30 Thread d-bugmail
http://d.puremagic.com/issues/show_bug.cgi?id=3407 Leandro Lucarella llu...@gmail.com changed: What|Removed |Added CC||llu...@gmail.com

[Issue 3407] [tdpl] Compiling with -safe -release must keep all bound checks

2009-10-30 Thread d-bugmail
http://d.puremagic.com/issues/show_bug.cgi?id=3407 --- Comment #7 from Andrei Alexandrescu and...@metalanguage.com 2009-10-30 17:21:41 PDT --- (In reply to comment #6) LDC already have all the checks splat in different options: $ ldc --help [...] -enable-asserts

[Issue 3407] [tdpl] Compiling with -safe -release must keep all bound checks

2009-10-30 Thread d-bugmail
http://d.puremagic.com/issues/show_bug.cgi?id=3407 --- Comment #8 from Leandro Lucarella llu...@gmail.com 2009-10-30 17:45:01 PDT --- (In reply to comment #7) (In reply to comment #6) LDC already have all the checks splat in different options: $ ldc --help [...] -enable-asserts

[Issue 3457] New: rdmd fails silently in a particular setup where the compiler is not the expected

2009-10-30 Thread d-bugmail
http://d.puremagic.com/issues/show_bug.cgi?id=3457 Summary: rdmd fails silently in a particular setup where the compiler is not the expected Product: D Version: 1.051 Platform: All OS/Version: Linux Status: NEW

[Issue 3458] New: int fsync(int) commented out in core.sys.posix.unistd

2009-10-30 Thread d-bugmail
http://d.puremagic.com/issues/show_bug.cgi?id=3458 Summary: int fsync(int) commented out in core.sys.posix.unistd Product: D Version: 2.035 Platform: All OS/Version: Linux Status: NEW Severity: normal Priority: P2

[Issue 1638] Restrictive functionality of listdir in file.d

2009-10-30 Thread d-bugmail
http://d.puremagic.com/issues/show_bug.cgi?id=1638 Leandro Lucarella llu...@gmail.com changed: What|Removed |Added Attachment #199 is|0 |1

[Issue 3459] New: There should be a flavor of file.listdir() that returns a range instead of taking a delegate

2009-10-30 Thread d-bugmail
http://d.puremagic.com/issues/show_bug.cgi?id=3459 Summary: There should be a flavor of file.listdir() that returns a range instead of taking a delegate Product: D Version: 2.035 Platform: All OS/Version: All

[Issue 3459] There should be a flavor of file.listdir() that returns a range instead of taking a delegate

2009-10-30 Thread d-bugmail
http://d.puremagic.com/issues/show_bug.cgi?id=3459 Leandro Lucarella llu...@gmail.com changed: What|Removed |Added Status|NEW |RESOLVED

[Issue 3458] int fsync(int) commented out in core.sys.posix.unistd

2009-10-30 Thread d-bugmail
http://d.puremagic.com/issues/show_bug.cgi?id=3458 Sean Kelly s...@invisibleduck.org changed: What|Removed |Added Status|NEW |ASSIGNED ---

[Issue 3443] Thread.thread_needLock() should be const pure nothrow

2009-10-30 Thread d-bugmail
http://d.puremagic.com/issues/show_bug.cgi?id=3443 Sean Kelly s...@invisibleduck.org changed: What|Removed |Added Status|NEW |ASSIGNED ---