helloworld example doesn't work

Derek Parnell derek at psych.ward
Tue May 9 20:51:28 PDT 2006


On Tue, 9 May 2006 23:57:05 +0000 (UTC), kellywilson at nowhere.com wrote:

> Hey everyone,
> 
> I just tried out the helloworld example posted at
> www.digitalmars.com/d/index.html
> 
> and I get this error (with dmd 0.149):
> 
> /hello.d(49): function hello.main.argspecs () does not match argument types
> (char[][])
> /hello.d(49): Error: expected 0 arguments, not 1
> 
> /hello.d(49): function hello.main.argspecs () does not match argument types
> (char[][])
> /hello.d(49): Error: expected 0 arguments, not 1
> 
> I can fix things so that they appear to run correctly (except the "argc=..."
> part at the end of main(), of course) by just commenting out line 50.
> 
> Any ideas as to why it is dying with this version of the compiler? Just too old?
> Or is it dying for others?
> 
> Thanks,
> Kelly Wilson

This code is buggy. I added corrected and expanded code at the wikibooks
site.
 

http://en.wikibooks.org/wiki/Programming:D/First_Program_Examples#Example_3

-- 
Derek
(skype: derek.j.parnell)
Melbourne, Australia
"Down with mediocracy!"
10/05/2006 1:50:09 PM



More information about the Digitalmars-d mailing list