Hello, World!

H. S. Teoh hsteoh at quickfur.ath.cx
Wed Mar 30 15:49:08 UTC 2022


On Wed, Mar 30, 2022 at 08:34:09AM +0000, Max Samukha via Digitalmars-d wrote:
> On Wednesday, 30 March 2022 at 08:13:48 UTC, Andrea Fontana wrote:
> 
> > 
> > Why not ```pragma(msg, "Hello World");```
> 
> Because pragma(msg) is an inglorious hack. We need proper I/O at
> compile time.

And pragma(msg) is technically not your program outputting the message,
but the compiler. You need to put it in main() for a proper
implementation of Hello World. ;-)


T

-- 
It only takes one twig to burn down a forest.


More information about the Digitalmars-d mailing list