simple answer : lack of time :-(
we also need to test it, we just don't apply a patch directly.
Since I am a multicompiler fan, ;-) , but no D experience at all, you could guide me through this process :
1) where to download and how to install those D compilers under linux (please don't tell me to compile them myself ...), I am using Suse10.
2) the I can try out your patch, and therefor ...
3) I need a real "hello world" D project
4) some other things I should know of as a D-dummy ?
Cheers,
Lieven
Hello!
Sorry for my very long response time. Seems that not only you suffer from lack of time :-)
Here are my answers:
1. Linux compilers:
DMD
- link:
http://www.digitalmars.com/d/dcompiler.html#linux- download file, unzip and copy linux specific executable files to e.g. /usr/local/bin; library libphobos.a to /usr/local/lib. you will be interested only in dmd directory in zip file
- there is instruction when you follow above link.
- downloaded file contain also files for windows - just ignore it ;-) you will find descriptions for files in Readme.txt files in zip archive
- tested by me
GDC - unfortunately it seems that it's more difficult here. If you want to test you should compile gdc AND gcc
- link:
http://home.earthlink.net/~dvdfrdmn/d/- I did not test gdc on linux because I don't use it. But if you look on patch, you will see that only very few changes were made regarding gdc. I did not touch at all gdc compiler file itself, so it should work also same as for windows.
2. "Hello world!" project
That point is really simple :-) D does not differ so much from C/C++. You can get lot information on its homepage:
www.digitalmars.com/d/import std.stdio;
int main(char[][] args)
{
writefln("Hello world!");
writef("args.length = %d\n", args.length);
for (int i = 0; i < args.length; i++)
writef("args[%d] = '%s'\n", i, args[i]);
return 0;
}
Generally D is as much as possible C++ but without its strange awkwards.
I hope it was helpful. I will try to help more if necessary :-)
BR
Aarti_pl