digitalmars.D - example on DMD 2.0 home page does NOT compile on linux
- mike (64/64) Jul 13 2011 I have just used the ubuntu package to install DMD64 D Compiler v2.054 o...
- Walter Bright (2/4) Jul 13 2011 Fixed. Thanks for letting us know.
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. begin 644 main.d M(R$O=7-R+V)I;B]D;60 +7)U; HO*B!S:"!S='EL92!S8W)I<'0 <WEN=&%X M(&ES('-U<'!O<G1E9"`J+PH*+RH 2&5L;&\ 5V]R;&0 :6X 1`H ("!4;R!C M;VUP:6QE. H ("` (&1M9"!H96QL;RYD"B` (&]R('1O(&]P=&EM:7IE. H M("` (&1M9"`M3R`M:6YL:6YE("UR96QE87-E(&AE;&QO+F0**B\*"FEM<&]R M="!S=&0N<W1D:6\[" IV;VED(&UA:6XH<W1R:6YG6UT 87)G<RD*>PH ("` M=W)I=&5L;B B2&5L;&\ 5V]R;&0L(%)E;&]A9&5D(BD[" H ("` +R\ 875T M;R!T>7!E(&EN9F5R96YC92!A;F0 8G5I;'0M:6X 9F]R96%C:`H ("` 9F]R M96%C:"`H87)G8RP 87)G=CL 87)G<RD*("` ('L*("` ("` ("`O+R!/8FIE M8W0 3W)I96YT960 4')O9W)A;6UI;F<*("` ("` ("!A=71O(&-L(#T ;F5W M($-M9$QI;BAA<F=C+"!A<F=V*3L*("` ("` ("`O+R!);7!R;W9E9"!T>7!E M<V%F92!P<FEN=&8*("` ("` ("!W<FET96QN*&-L+F%R9VYU;2P 8VPN<W5F M9FEX+"`B(&%R9SH (BP 8VPN87)G=BD["B` ("` ("` +R\ 075T;VUA=&EC M(&]R(&5X<&QI8VET(&UE;6]R>2!M86YA9V5M96YT"B` ("` ("` 9&5L971E M(&-L.PH ("` ?0H*("` ("\O($YE<W1E9"!S=')U8W1S(&%N9"!C;&%S<V5S M"B` ("!S=')U8W0 <W!E8W,*("` ('L*("` ("` ("`O+R!A;&P ;65M8F5R M<R!A=71O;6%T:6-A;&QY(&EN:71I86QI>F5D"B` ("` ("` :6YT(&-O=6YT M+"!A;&QO8V%T960["B` ("!]" H ("` +R\ 3F5S=&5D(&9U;F-T:6]N<R!C M86X <F5F97( =&\ ;W5T97(*("` ("\O('9A<FEA8FQE<R!L:6ME(&%R9W,* M("` ('-P96-S(&%R9W-P96-S*"D*("` ('L*("` ("` ("!S<&5C<RH <R`] M(&YE=R!S<&5C<SL*("` ("` ("`O+R!N;R!N965D(&9O<B`G+3XG"B` ("` M("` <RYC;W5N="`](&%R9W,N;&5N9W1H.PD)("` +R\ 9V5T(&QE;F=T:"!O M9B!A<G)A>2!W:71H("YL96YG=& *("` ("` ("!S+F%L;&]C871E9"`]('1Y M<&5O9BAA<F=S*2YS:7IE;V8[("\O(&)U:6QT+6EN(&YA=&EV92!T>7!E('!R M;W!E<G1I97,*("` ("` ("!F;W)E86-H("AA<F=V.R!A<F=S*0H ("` ("` M("` ("!S+F%L;&]C871E9"`K/2!A<F=V+FQE;F=T:"`J('1Y<&5O9BAA<F=V M6S!=*2YS:7IE;V8["B` ("` ("` <F5T=7)N("IS.PH ("` ?0H*("` ("\O M(&)U:6QT+6EN('-T<FEN9R!A;F0 8V]M;6]N('-T<FEN9R!O<&5R871I;VYS M"B` ("!W<FET969L;B B87)G8R`]("5D+"`B('X (F%L;&]C871E9"`]("5D M(BP*"6%R9W-P96-S*"DN8V]U;G0L(&%R9W-P96-S*"DN86QL;V-A=&5D*3L* M?0H*8VQA<W, 0VUD3&EN"GL*("` ('!R:79A=&4 :6YT(%]A<F=C.PH ("` M<')I=F%T92!S=')I;F< 7V%R9W8[" IP=6)L:6,Z"B` ("!T:&ES*&EN="!A M<F=C+"!S=')I;F< 87)G=BD)+R\ 8V]N<W1R=6-T;W(*("` ('L*("` ("` M("!?87)G8R`](&%R9V,["B` ("` ("` 7V%R9W8 /2!A<F=V.PH ("` ?0H* M("` (&EN="!A<F=N=6TH*0H ("` >PH ("` ("` (')E='5R;B!?87)G8R`K M='5R;B!?87)G=CL*("` ('T*"B` ("!S=')I;F< <W5F9FEX*"D*("` ('L* M("` ("` ("!S=')I;F< <W5F9FEX(#T (G1H(CL*("` ("` ("!S=VET8V M*%]A<F=C*0H ("` ("` ('L*("` ("` ("` (&-A<V4 ,#H*("` ("` ("` M("` <W5F9FEX(#T (G-T(CL*("` ("` ("` ("` 8G)E86L["B` ("` ("` M("` (&)R96%K.PH ("` ("` ("` 8V%S92`R. H ("` ("` ("` ("!S=69F M:7 /2`B<F0B.PH ("` ("` ("` ("!B<F5A:SL*("` ("` ("` (&1E9F%U M;'0Z" D ("` 8G)E86L["B` ("` ("` ?0H ("` ("` (')E='5R;B!S=69F -:7 ["B` ("!]"GT*" `` ` end
Jul 13 2011
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