Re: lazy thoughts

2009-01-15 Thread davidl
在 Wed, 14 Jan 2009 07:43:53 +0800,Bill Baxter wbax...@gmail.com 写道: On Wed, Jan 14, 2009 at 7:39 AM, Jason House jason.james.ho...@gmail.com wrote: Point #3 is on the mark. A URL to quality documentstion is worth 100 posts declaring the superiority of dlibs. A URL to browseable source

Re: lazy thoughts

2009-01-15 Thread Bill Baxter
On Thu, Jan 15, 2009 at 4:58 PM, davidl dav...@126.com wrote: 在 Wed, 14 Jan 2009 07:43:53 +0800,Bill Baxter wbax...@gmail.com 写道: On Wed, Jan 14, 2009 at 7:39 AM, Jason House jason.james.ho...@gmail.com wrote: Point #3 is on the mark. A URL to quality documentstion is worth 100 posts

Re: lazy thoughts

2009-01-15 Thread Aarti_pl
Bill Baxter pisze: On Thu, Jan 15, 2009 at 4:58 PM, davidl dav...@126.com wrote: 在 Wed, 14 Jan 2009 07:43:53 +0800,Bill Baxter wbax...@gmail.com 写道: On Wed, Jan 14, 2009 at 7:39 AM, Jason House jason.james.ho...@gmail.com wrote: Point #3 is on the mark. A URL to quality documentstion is

Re: Anomaly on Wiki4D GuiLibraries page

2009-01-15 Thread Tim M
On Fri, 16 Jan 2009 04:08:28 +1300, John Reimer terminal.n...@gmail.com wrote: ... Personally, I think we're at a point in D's life where we don't need to call it standard. Maybe it would be better to have a newsgroup called GUI instead. I'm not sure. -JJR That sounds

Re: Anomaly on Wiki4D GuiLibraries page

2009-01-15 Thread Piotrek
Tim M wrote: It's brainwashing people into think that dwt is the best thing around. IMHO, It's better then anything around. It works on Linux/Windows and is easy to use. There's only one competitor named gtkD, but... the button usage example from the project site with such a nice line of

Profiler Speed

2009-01-15 Thread dsimcha
I'm working on optimizing some code now, and a nagging issue that I've been meaning to bring up is how slow stuff runs when profiling is turned on. It seems that, given any code that's slow enough to be worth profiling/optimizing, the DMD profiler slows it down further, to the point where it's

Re: lazy thoughts

2009-01-15 Thread Georg Wrede
On Mon, 2009-01-12 at 21:32 -0800, Andrei Alexandrescu wrote: I'll hazard a guess that it's because some ideas that have originated from the community don't always get recognition by the D team. Later, when the D team independently engineers similar ideas, it is likely to be

Re: OT: Less-restrictive alternative to XML and XML visualizers?

2009-01-15 Thread Nick Sabalausky
Nick Sabalausky a...@a.a wrote in message news:gk9cvv$ga...@digitalmars.com... Christopher Wright dhase...@gmail.com wrote in message news:gk99av$at...@digitalmars.com... Nick Sabalausky wrote: I have a need for an inexpensive (preferably freeware or open-source, obviously), alternate to

Re: Qt 4.5 to be LGPL

2009-01-15 Thread BLS
Bill Baxter wrote: On Thu, Jan 15, 2009 at 4:42 AM, naryl c...@ngs.ru wrote: On Wed, 14 Jan 2009 18:40:19 +0300, Bill Baxter wbax...@gmail.com wrote: Qt 4.5 to be LGPL http://tech.slashdot.org/article.pl?sid=09%2F01%2F14%2F1312210 Now we just need a D port... --bb There is a binding

Re: Profiler Speed

2009-01-15 Thread bearophile
Nick Sabalausky: Isn't that kind of a common thing with profilers in general? Any physical measure alters the thing to be measured, but with a good enough brain you can generally invent ways to decrease such alteration to tolerable levels. So it's a matter of inventing better solutions. There

Re: Qt 4.5 to be LGPL

2009-01-15 Thread Nick Sabalausky
BLS windev...@hotmail.de wrote in message news:gkodf2$1ah...@digitalmars.com... Bill Baxter wrote: On Thu, Jan 15, 2009 at 4:42 AM, naryl c...@ngs.ru wrote: On Wed, 14 Jan 2009 18:40:19 +0300, Bill Baxter wbax...@gmail.com wrote: Qt 4.5 to be LGPL

Re: Qt 4.5 to be LGPL

2009-01-15 Thread Sergey Kovrov
On 1/16/2009 12:50 AM, Nick Sabalausky wrote: From what I gather from having recently been trying to read up on Qt: - The newer verions of Qt actually use the real native widgets, unlike older versions of Qt. Well, from what I've read and observe now, Qt just mimics native look (but not

Re: Qt 4.5 to be LGPL

2009-01-15 Thread Yigal Chripun
BLS wrote: Nick Sabalausky wrote: BLS windev...@hotmail.de wrote in message news:gkodf2$1ah...@digitalmars.com... Bill Baxter wrote: On Thu, Jan 15, 2009 at 4:42 AM, naryl c...@ngs.ru wrote: On Wed, 14 Jan 2009 18:40:19 +0300, Bill Baxter wbax...@gmail.com wrote: Qt 4.5 to be LGPL

Re: Qt 4.5 to be LGPL

2009-01-15 Thread Bill Baxter
On Fri, Jan 16, 2009 at 8:26 AM, BLS windev...@hotmail.de wrote: Nick Sabalausky wrote: BLS windev...@hotmail.de wrote in message news:gkodf2$1ah...@digitalmars.com... Bill Baxter wrote: On Thu, Jan 15, 2009 at 4:42 AM, naryl c...@ngs.ru wrote: On Wed, 14 Jan 2009 18:40:19 +0300, Bill

Re: Profiler Speed

2009-01-15 Thread Christopher Wright
bearophile wrote: Nick Sabalausky: Isn't that kind of a common thing with profilers in general? Any physical measure alters the thing to be measured, but with a good enough brain you can generally invent ways to decrease such alteration to tolerable levels. So it's a matter of inventing

Re: Profiler Speed

2009-01-15 Thread Bill Baxter
On Fri, Jan 16, 2009 at 9:44 AM, Christopher Wright dhase...@gmail.com wrote: bearophile wrote: Nick Sabalausky: Isn't that kind of a common thing with profilers in general? Any physical measure alters the thing to be measured, but with a good enough brain you can generally invent ways to

Re: Qt 4.5 to be LGPL

2009-01-15 Thread Walter Bright
Bill Baxter wrote: On Fri, Jan 16, 2009 at 9:00 AM, Yigal Chripun yigal...@gmail.com wrote: 2. there's more to SS than just an array of delegates - they are weak refs so that destruction of an object disconnects automatically the apropriate signals. but there is a weakref lib for D written by

Re: Overload by return type

2009-01-15 Thread Peter C. Chapin
dsimcha wrote: Just curious, why doesn't D, and why don't more statically typed languages in general, support overload by return type? I haven't exactly thought through all the pros and cons, but at first glance it seems like an incredibly useful thing. What's the catch that I'm missing?

Re: Qt 4.5 to be LGPL

2009-01-15 Thread Katrina Niolet
Stewart Gordon Wrote: Bill Baxter wrote: Qt 4.5 to be LGPL http://tech.slashdot.org/article.pl?sid=09%2F01%2F14%2F1312210 Now we just need a D port... There was Indigo, not exactly a port but a library to mimic Qt's API. http://www.dsource.org/projects/indigo/ But that import is

Re: Qt 4.5 to be LGPL

2009-01-15 Thread Eldar Insafutdinov
Bill Baxter Wrote: On Fri, Jan 16, 2009 at 11:26 AM, Katrina Niolet katr...@niolet.name wrote: Stewart Gordon Wrote: Bill Baxter wrote: Qt 4.5 to be LGPL http://tech.slashdot.org/article.pl?sid=09%2F01%2F14%2F1312210 Now we just need a D port... There was Indigo, not

Re: Anomaly on Wiki4D GuiLibraries page

2009-01-15 Thread John Reimer
Hello tim, On Fri, 16 Jan 2009 04:08:28 +1300, John Reimer terminal.n...@gmail.com wrote: ... Personally, I think we're at a point in D's life where we don't need to call it standard. Maybe it would be better to have a newsgroup called GUI instead. I'm not sure. -JJR That

Re: Profiler Speed

2009-01-15 Thread Walter Bright
Bill Baxter wrote: Right, that would probably do the trick, except I don't think there's anyway to programatically turn D's profiler on or off. So if you've got a program with a big startup cost and you want to profile something that happens after startup, it means you could be waiting a long

Re: Questions regarding D

2009-01-15 Thread William Newbery
Jarrett Billingsley Wrote: On Wed, Jan 14, 2009 at 5:35 PM, William Newbery wnewb...@hotmail.co.uk wrote: You do have options. DDL is a project which aims to perform dynamic linking on Windows, and it works damn well. It also has a lot of useful utility functions to i.e. look up

Re: Questions regarding D

2009-01-15 Thread Denis Koroskin
On Wed, 14 Jan 2009 22:58:55 +0300, William Newbery wnewb...@hotmail.co.uk wrote: I use c++ extensivly, however I find several shortcoming of c++ highly annoying, and it looks as if D addresses most of these problems for me, however I'm not certain on certain points as Ive either been

Re: easy way to output a struct?

2009-01-15 Thread Denis Koroskin
On Thu, 15 Jan 2009 03:04:15 +0300, Hoenir mrmoc...@gmx.de wrote: BCS schrieb: http://codepad.org/Eu16XqFu Thank you very much, it works like a charm. I wrote a small function to log whatever object I pass to it: void log(T)(T obj) { static if (is(T == struct) || is(T == class))

Re: easy way to output a struct?

2009-01-15 Thread bearophile
Jarrett Billingsley: bearophile has apparently done so in his libs but I have no idea where you can download that. If you use Phobos on D1 the d.string.put/putr to print generic structs, or use a d.templates.Record struct: http://www.fantascienza.net/leonardo/so/libs_d.zip Bye, bearophile

Re: How do I match a dash with munch?

2009-01-15 Thread Jarrett Billingsley
On Thu, Jan 15, 2009 at 8:55 AM, Simen Kjaeraas simen.kja...@gmail.com wrote: munch(bar-baz, -); returns . Is there a way to do this apart from writing my own function? I think you've got the behavior of munch backwards. It will eat any characters that _are_ in the pattern string. Since 'b'

Re: Getting line number where error occured?

2009-01-15 Thread Kagamin
Bill Baxter Wrote: Nothing built-in for this, but there are the backtrace hacks: http://team0xf.com/index.php?n=Site.Download Never tried those myself though. I use a debugger when I need a stack trace. http://ddbg.mainia.de/releases.html (Windows - on Linux I think you can use GDB).

Re: easy way to output a struct?

2009-01-15 Thread Jarrett Billingsley
On Thu, Jan 15, 2009 at 6:57 PM, Hoenir mrmoc...@gmx.de wrote: Why is that is used here: static if(is(a == char*)) I know is is normally used for identity comparison, but what does it do here? is(blah blah) is a completely different thing than x is y ;) is() is used to test, at compile

Re: using a typedefed variable with library classes

2009-01-15 Thread Christopher Wright
Charles Hixson wrote: A) Yes, it works the way that you say. This damages it's utility. B) I'm replying to a question as to how typedef could reasonably be extended. The point of a typedef is to provide additional type safety. This would not exist if you could implicitly cast back and

Re: Getting line number where error occured?

2009-01-15 Thread Bill Baxter
On Fri, Jan 16, 2009 at 10:50 AM, Sergey Gromov snake.sc...@gmail.com wrote: Thu, 15 Jan 2009 13:08:35 -0500, Kagamin wrote: Bill Baxter Wrote: Nothing built-in for this, but there are the backtrace hacks: http://team0xf.com/index.php?n=Site.Download Never tried those myself though. I

Re: Getting line number where error occured?

2009-01-15 Thread Jarrett Billingsley
On Thu, Jan 15, 2009 at 8:50 PM, Sergey Gromov snake.sc...@gmail.com wrote: You're correct, I missed that. Exception is derived from Throwable in druntime, and Throwable has a field 'info' of type TraceInfo with opApply in its interface. But it doesn't work, at least with DMD 2.023 on

Re: confused with some_var.dup

2009-01-15 Thread Tim M
On Fri, 16 Jan 2009 20:30:53 +1300, Qian Xu quian...@stud.tu-ilmenau.de wrote: When shall I use some_var.dup and when not? Is there any guidlines? --Qian Yeah when you want one to be different than the other. If the lvalue is a slice then there is no need though.