(no subject)

Ali Çehreli acehreli at yahoo.com
Sun Jun 6 09:52:37 PDT 2010


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 
> returning 1 or 0 from the program.

It should be ok. If there is no return statement, a D program returns 0 
for successful exit, and non-zero for error.

This point has been stressed in Andrei Alexandrescu's "The Case for D" 
article when comparing the "hello world" programs of some languages.

Ali


More information about the Digitalmars-d-learn mailing list