Re: QtD 0.1 is out!

2009-02-28 Thread grauzone
Lars Ivar Igesund wrote: Eldar Insafutdinov wrote: We faced a bug that module static constructors don't work with cyclic imports. Currently it's fixed with a dirty hack which is not really acceptable. Is there any chance for this to be fixed? IMO it is the cyclic import that is the bug ;)

Re: Just one more thing...

2009-02-28 Thread Jacob Carlborg
Brad Roberts wrote: Michel Fortin wrote: On 2009-02-27 16:37:13 -0500, Jacob Carlborg d...@me.com said: Nick Sabalausky wrote: Ordinarily, I detest the idea of pulling support for anything as recent as just a few years old. But Apple themselves has a habit of ignoring users of anything

Re: Poppler

2009-02-28 Thread Jarrett Billingsley
On Sat, Feb 28, 2009 at 5:40 AM, áîáåô bo...@abv-nospam.bg wrote: Hi guys, if someone is interested in wrapper classes for Poppler (pdf library) - give me a note at afrikanski at gmail dot com. Regards, bobef Why don't you release them publicly?

Re: QtD 0.1 is out!

2009-02-28 Thread Yigal Chripun
Fawzi Mohamed wrote: On 2009-02-27 21:49:58 +0100, Fawzi Mohamed fmoha...@mac.com said: On 2009-02-27 21:10:29 +0100, Walter Bright newshou...@digitalmars.com said: Eldar Insafutdinov wrote: Now we have to make a manual init function called from class constructors. I understand that

Re: QtD 0.1 is out!

2009-02-28 Thread Yigal Chripun
Jarrett Billingsley wrote: On Sat, Feb 28, 2009 at 11:05 AM, Yigal Chripunyigal...@gmail.com wrote: I agree with the above but there is still a small issue here: A module is a single file and when you have several large classes that are tightly coupled you can get a very big file with

Re: QtD 0.1 is out!

2009-02-28 Thread Lars Ivar Igesund
Eldar Insafutdinov wrote: Lars Ivar Igesund Wrote: Eldar Insafutdinov wrote: We faced a bug that module static constructors don't work with cyclic imports. Currently it's fixed with a dirty hack which is not really acceptable. Is there any chance for this to be fixed? IMO it is the

Re: Poppler

2009-02-28 Thread BCS
Hello Moritz, On Sat, 28 Feb 2009 12:53:03 -0500, bobef wrote: Because I'm lazy and I doubt there will be any interest. But if you want I can send them to you and you can release them publicly ;) I would suggest http://dsource.org/projects/scrapple Just make a ticket. :) bobef: post your

Re: QtD 0.1 is out!

2009-02-28 Thread Fawzi Mohamed
On 2009-02-28 14:54:26 +0100, Christopher Wright dhase...@gmail.com said: Lutger wrote: grauzone wrote: Lars Ivar Igesund wrote: Eldar Insafutdinov wrote: We faced a bug that module static constructors don't work with cyclic imports. Currently it's fixed with a dirty hack which is not

Re: QtD 0.1 is out!

2009-02-28 Thread Walter Bright
Yigal Chripun wrote: this is related to D's compilation model which is copied from C/C++ and it seems to me that this model is outdated. C#'s model of assemblies and metadata seems more capable. for instance there's no need for header files, that info is stored in the metadata of the assembly.

Re: QtD 0.1 is out!

2009-02-28 Thread Walter Bright
Christopher Wright wrote: Additionally, the compiler has sufficient information to complain about the problem at compile time, but it doesn't. That is a bug. No, it does not. The compiler doesn't know about private imports of separately compiled modules.

Re: QtD 0.1 is out!

2009-02-28 Thread Jarrett Billingsley
On Sat, Feb 28, 2009 at 3:05 PM, Walter Bright newshou...@digitalmars.com wrote: Christopher Wright wrote: Additionally, the compiler has sufficient information to complain about the problem at compile time, but it doesn't. That is a bug. No, it does not. The compiler doesn't know about

Re: QtD 0.1 is out!

2009-02-28 Thread Walter Bright
Jarrett Billingsley wrote: See it's funny, since in the other post, you said that using an autogenerated header file is semantically indistinguishable from compiling it to a metadata file. And here you're pointing out an obvious shortcoming! You can make hand-generated ones, too. The idea of

Re: QtD 0.1 is out!

2009-02-28 Thread Derek Parnell
On Sat, 28 Feb 2009 13:03:05 -0800, Andrei Alexandrescu wrote: Walter Bright wrote: Jarrett Billingsley wrote: See it's funny, since in the other post, you said that using an autogenerated header file is semantically indistinguishable from compiling it to a metadata file. And here you're

Re: Just one more thing...

2009-02-28 Thread Daniel Keep
Sean Kelly wrote: One somewhat weird issue that we may have to face at some point is that Posix functions whose behavior was changed have had the symbol for the new function changed to _blah$UNIX2003, with the old function left in place. Since D can't declare symbols like this, we may end

Re: Just one more thing...

2009-02-28 Thread Jarrett Billingsley
On Sat, Feb 28, 2009 at 10:52 PM, Daniel Keep daniel.keep.li...@gmail.com wrote: extern(C) void __identifier(blah$UNIX2003)(int); A beneficial side-effect is that I can finally get rid of all those mixins that are just doing this: mixin(`void `~name_of_fn~`(int a) {    // ... rest of

Re: QtD 0.1 is out!

2009-02-28 Thread Daniel Keep
Yigal Chripun wrote: On Sat, Feb 28, 2009 at 11:05 AM, Yigal Chripunyigal...@gmail.com wrote: I agree with the above but there is still a small issue here: A module is a single file and when you have several large classes that are tightly coupled you can get a very big file with thousands

Re: Just one more thing...

2009-02-28 Thread Daniel Keep
Walter Bright wrote: Jarrett Billingsley wrote: On Sat, Feb 28, 2009 at 10:52 PM, Daniel Keep daniel.keep.li...@gmail.com wrote: extern(C) void __identifier(blah$UNIX2003)(int); A beneficial side-effect is that I can finally get rid of all those mixins that are just doing this: