added d/init D example
git-svn-id: svn://anubis/misc/d@87 bd8a9e45-a331-0410-811e-c64571078777
This commit is contained in:
parent
26b464df2f
commit
675e312f25
12
init/Makefile
Normal file
12
init/Makefile
Normal file
@ -0,0 +1,12 @@
|
|||||||
|
|
||||||
|
TARGET := init
|
||||||
|
|
||||||
|
all: $(TARGET)
|
||||||
|
|
||||||
|
$(TARGET): $(TARGET).d
|
||||||
|
|
||||||
|
%: %.d
|
||||||
|
gdc -o $@ $<
|
||||||
|
|
||||||
|
clean:
|
||||||
|
-rm -f *.o *~ $(TARGET)
|
11
init/init.d
Normal file
11
init/init.d
Normal file
@ -0,0 +1,11 @@
|
|||||||
|
|
||||||
|
import std.stdio;
|
||||||
|
|
||||||
|
int magicNumber = 42;
|
||||||
|
char[] password = "sesame";
|
||||||
|
|
||||||
|
void main()
|
||||||
|
{
|
||||||
|
writefln("Magic number: ", magicNumber);
|
||||||
|
writefln("Password: ", password);
|
||||||
|
}
|
Loading…
x
Reference in New Issue
Block a user