Re: CGI with D

2010-06-06 Thread Graham Fawcett
On Sun, 06 Jun 2010 08:42:22 -0400, new to d wrote: > new to d Wrote: > >> After reading on this newsgroup about the use of D with cgi i've tried >> it on my host. Even a simple hello world program gives me internal >> server error while equivalent c program compiled with gcc works fine. >> Does

Re: delegates with C linkage

2010-06-06 Thread dennis luehring
Am 06.06.2010 17:30, schrieb Zarathustra: are delegats part of the ABI, i can't find a delegat calling scheme in the ABI-Description - should this be in EAX, as last/first part on stack, ECX? The delegates are called by exactly same way as any other member function. Put ptr = 'this'(context

Re: (no subject)

2010-06-06 Thread Ali Çehreli
Michal Minich wrote: On Sun, 06 Jun 2010 09:00:25 -0400, new to d wrote: import std.stdio; void main(string[] args) { writeln("Hello world!"); } Just a guess, but maybe the difference of your C and D programs is in return value, which can be differently interpreted by CGI host. try

Re: delegates with C linkage

2010-06-06 Thread bearophile
Zarathustra: > I think there is a good chance for create the set examples which show how to > use D > features on the C level. I will thinking about it in my free time :) The idea > is > really interesting and it would be useful(especially to better understand > these > mechanisms) for some peop

Re: delegates with C linkage

2010-06-06 Thread Zarathustra
> my fault - yes its possible to use delegates in non D but delegat-struct > knowing languages (and a small pice of special calling code), sorry > Zarathrustra i missed the point of your post in whole No problem, I'm glad that we have reached an agreement. > wouldn't it be nice to have an complete

Re: GUIs in D1?

2010-06-06 Thread Jacob Carlborg
On 2010-06-06 09:15, Mike Linford wrote: What's the current preferred way of doing cross-platform GUIs in nowadays? DWT looks like a good option, but apparently its been dead for a while? --Mike L. I would not consider it dead, but nothing has been updated for a while. I'm working on updating

Re: (no subject)

2010-06-06 Thread new to d
new to d Wrote: > Robert Clipsham Wrote: > > > On 06/06/10 14:00, new to d wrote: > > > It's a typical hello world program: > > > > > > import std.stdio; > > > > > > void main(string[] args) { writeln("Hello world!"); } > > > > > > I also tried using printf instead of writeln. I'm compiling it wi

Re: (no subject)

2010-06-06 Thread new to d
Robert Clipsham Wrote: > On 06/06/10 14:00, new to d wrote: > > It's a typical hello world program: > > > > import std.stdio; > > > > void main(string[] args) { writeln("Hello world!"); } > > > > I also tried using printf instead of writeln. I'm compiling it with > > dmd test.d. I'm using dmd v2.0

Re: (no subject)

2010-06-06 Thread Michal Minich
On Sun, 06 Jun 2010 09:00:25 -0400, new to d wrote: > import std.stdio; > > void main(string[] args) > { > writeln("Hello world!"); > } Just a guess, but maybe the difference of your C and D programs is in return value, which can be differently interpreted by CGI host. try returning 1 or

Re: (no subject)

2010-06-06 Thread Robert Clipsham
On 06/06/10 14:00, new to d wrote: It's a typical hello world program: import std.stdio; void main(string[] args) { writeln("Hello world!"); } I also tried using printf instead of writeln. I'm compiling it with dmd test.d. I'm using dmd v2.046. I'm compiling the c program with gcc -otest2 test

Re: (no subject)

2010-06-06 Thread new to d
Robert Clipsham Wrote: > On 06/06/10 13:40, new to d wrote: > > After reading on this newsgroup about the use of D with cgi i've > > tried it on my host. Even a simple hello world program gives me > > internal server error while equivalent c program compiled with gcc > > works fine. Does any one h

Re: (no subject)

2010-06-06 Thread Robert Clipsham
On 06/06/10 13:40, new to d wrote: After reading on this newsgroup about the use of D with cgi i've tried it on my host. Even a simple hello world program gives me internal server error while equivalent c program compiled with gcc works fine. Does any one here have any idea what the problem could

CGI with D

2010-06-06 Thread new to d
new to d Wrote: > After reading on this newsgroup about the use of D with cgi i've tried it on > my host. Even a simple hello world program gives me internal server error > while equivalent c program compiled with gcc works fine. Does any one here > have any idea what the problem could be? I f

(no subject)

2010-06-06 Thread new to d
After reading on this newsgroup about the use of D with cgi i've tried it on my host. Even a simple hello world program gives me internal server error while equivalent c program compiled with gcc works fine. Does any one here have any idea what the problem could be?

Re: foreach AA key char[] type change

2010-06-06 Thread bearophile
http://d.puremagic.com/issues/show_bug.cgi?id=4279 http://d.puremagic.com/issues/show_bug.cgi?id=4281

Re: foreach AA key char[] type change

2010-06-06 Thread bearophile
Steven Schveighoffer: > Probably because you aren't allowed to change keys for AAs. Passing the > key as a char[] type would allow that. Modifying AA keys after they are inserted in the AA is bad because their hash value and position inside the AA doesn't get recomputed. The current design/be

Re: delegates with C linkage

2010-06-06 Thread dennis luehring
Am 06.06.2010 11:33, schrieb Simen kjaeraas: Also, pointers to delegates can be passed to C-linkage functions. A delegate is nothing but a struct, and as such there is no reason for it not to be passable to a C-linkage function. my fault - yes its possible to use delegates in non D but delegat-

Re: delegates with C linkage

2010-06-06 Thread Simen kjaeraas
dennis luehring wrote: D still won't accept an delegat in an extern C because this type does not exists in the C world Nor do classes, and those certainly can be passed to a C-linkage function. Also, pointers to delegates can be passed to C-linkage functions. A delegate is nothing but a str

Re: GUIs in D1?

2010-06-06 Thread Zarathustra
> What's the current preferred way of doing cross-platform GUIs in > nowadays? DWT looks like a good option, but apparently its been dead for > a while? > > --Mike L. DWT is great but yes it looks dead for half a year. There are gtkd (also not updated for a while but it works well with D1 (I'm not

GUIs in D1?

2010-06-06 Thread Mike Linford
What's the current preferred way of doing cross-platform GUIs in nowadays? DWT looks like a good option, but apparently its been dead for a while? --Mike L.