DMD works on GNU/Linux, samples updated
This commit is contained in:
parent
1ebea84622
commit
fe7bf93206
4 changed files with 33 additions and 33 deletions
|
@ -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;
|
||||
}
|
||||
|
|
|
@ -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!");
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue