Hello, World!

Ola Fosheim Grøstad ola.fosheim.grostad at gmail.com
Tue Apr 5 15:33:16 UTC 2022


On Friday, 25 March 2022 at 20:07:39 UTC, Anonymous wrote:
> **Input:**
> ```d
> void main()
> {
>     import std.stdio : writeln;
>     writeln("Hello, World!\n");
>     //I'm not sure if the ^^ is necessary or not
> }

Not efficient enough. :^)

```d
extern (C) { int write(int, immutable char*, int); }

void main()
{
	write(1,&"Hello, world!\n"[0],14);
}
```


More information about the Digitalmars-d mailing list