Developer forums (C::B DEVELOPMENT STRICTLY!) > Development
D Programming Language Support
bioinfornatics:
so LDC support will be great
thanks
afb:
--- Quote from: bioinfornatics on August 23, 2010, 05:51:53 pm ---so LDC support will be great
--- End quote ---
I'll do it. Some of the D2 support will take longer, though.
But GDC/LDC doesn't work very well with D2 yet anyway.
Changes to "hello.d" won't work with Tango, so a no-go...
(that silly old printf example is still the upstream default)
bioinfornatics:
--- Code: ---import tango.io.Stdout;
void main(){
Stdout("Hello word").nl;//print to stdout
}
--- End code ---
afb:
--- Quote from: bioinfornatics on August 27, 2010, 05:39:02 pm ---
--- Code: ---import tango.io.Stdout;
void main(){
Stdout("Hello word").nl;//print to stdout
}
--- End code ---
--- End quote ---
And that doesn't work with Phobos... See how that's a problem ? :-)
So for each application, you'd need to choose which library to use.
Or use something silly, like printf or lots of version() statements.
--- Code: ---version (Tango)
import tango.io.Stdout;
else // Phobos
import std.stdio;
void main()
{
version (Tango)
Stdout ("Hello, World!").newline;
else // Phobos
writefln("Hello, World!");
}
--- End code ---
And that's after choosing between using D and D2 (like C and C++).
afb:
By the way, if you want GDC there's http://gdcgnu.sourceforge.net/
It's for an older version of Fedora (like 5) and GCC (than 4.5), though.
But it comes with either of Phobos (standard) or Tango (alternative).
Just add GCC: https://sourceforge.net/projects/gdcgnu/files/gdc/r229/
Navigation
[0] Message Index
[#] Next page
[*] Previous page
Go to full version