[Issue 2613] The trivial hello.d sample program fails at execution
d-bugmail at puremagic.com
d-bugmail at puremagic.com
Sun Jan 25 14:25:24 PST 2009
http://d.puremagic.com/issues/show_bug.cgi?id=2613
smjg at iname.com changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |smjg at iname.com
------- Comment #1 from smjg at iname.com 2009-01-25 16:25 -------
Wrong again. It should be fixed to use writefln, in both the D1 and D2
packages. And probably have args declared as string[] rather than char[][].
----------
import std.stdio;
int main(string[] args)
{
writefln("hello world");
writefln("args.length = %d", args.length);
for (int i = 0; i < args.length; i++)
writefln("args[%d] = '%s'", i, args[i]);
return 0;
}
----------
--
More information about the Digitalmars-d-bugs
mailing list