digitalmars.D - example on DMD 2.0 home page does NOT compile on linux
mike <mike xenonym.com> writes:
I have just used the ubuntu package to install DMD64 D Compiler v2.054 on my mint linux i7 laptop. when I copy and paste the example from http://www.digitalmars.com/d/2.0/index.html I get ; mwynn kraken ~/projects/my_lang/Dsrc $ dmd main.d main.d(21): Error: constructor main.CmdLin.this (int argc, string argv) is not callable using argument types (ulong,string) main.d(21): Error: cannot implicitly convert expression (argc) of type ulong to int mwynn kraken ~/projects/my_lang/Dsrc $ dmd DMD64 D Compiler v2.054 Copyright (c) 1999-2011 by Digital Mars written by Walter Bright Documentation: http://www.digitalmars.com/d/2.0/index.html Usage: while I'm sure that I can fix is I think it's a little poor that the stock examples on your website do not compile out of the tin. I have attached the file I tried to compile just incase my cut'n'paste has errors.
Jul 13 2011
Walter Bright <newshound2 digitalmars.com> writes:
On 7/13/2011 1:23 PM, mike wrote:while I'm sure that I can fix is I think it's a little poor that the stock examples on your website do not compile out of the tin.
Fixed. Thanks for letting us know.
Jul 13 2011