DMD works on GNU/Linux, samples updated

This commit is contained in:
selman 2007-03-20 12:27:50 +00:00
commit fe7bf93206
4 changed files with 33 additions and 33 deletions

View file

@ -3,15 +3,8 @@ import Hello.hello;
int main()
{
version (GNU)
{
Hail hello = new Hail();
hello.Print();
}
else
{
Print();
}
Hail hello = new Hail();
hello.Print();
return 0;
}

View file

@ -2,21 +2,13 @@ module Hello.hello;
import std.stdio;
version (GNU)
{
class Hail
{
public:
void Print()
{
writefln ("Hello, World!");
}
}
}
else
class Hail
{
public:
void Print()
{
writefln ("Hello, World!");
}
}