Hello, world!
Posted feedbacks - D
1 2 3 | module doukaku;
private import std.stdio;
void main() { std.stdio.writefln("Hello, world!"); }
|
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 | module doukaku;
private import std.stdio;
class Hello
{
this()
{
writef("Hello");
}
void puts(void delegate() dg)
{
dg();
}
~this()
{
writef(" world!\n");
}
}
int main()
{
(new Hello()).puts(
{
writef(",");
});
return 0;
}
|


にしお
#3358()
Rating0/0=0.00
[ reply ]