Moving from 1.0 to D2
Steven Schveighoffer
schveiguy at yahoo.com
Mon Mar 9 15:44:18 PDT 2009
On Mon, 09 Mar 2009 17:55:48 -0400, jicman wrote:
>
> Greetings and salutations...
>
> I am corrently trying to get my co. to see the goodness of D. So, we
> have a huge project, which is already live and 5 co-workers are using,
> which is all based on D1, if I may call it that. The project also uses
> DFL, dbi (v.62) and juno (v.0.3.5.5), plus other libraries and DLL that
> I wrote, all based in D1.
Very cool.
>
> 12:49:34.90>dmd
> Digital Mars D Compiler v1.022
> Copyright (c) 1999-2007 by Digital Mars written by Walter Bright
> Documentation: http://www.digitalmars.com/d/1.0/index.html
>
> 17:53:10.15>build
> Path and Version : c:\bin\build.exe v3.04(2514)
> built on Mon Oct 16 11:43:04 2006
>
> How much different is D2 vs. D1?
Much. Much much much ;) It's almost another language.
> Can the D1 code be easily changed to D2? We are talking about more than
> 30K lines of code.
I've worked on porting Tango to D2, which I'm thinking is more than 30k
lines, but depending on how you have designed your code, it might be
really difficult. Tango uses lots of designs that do not port easily to
D2, which makes me have to either redesign them, or use casts to get it to
work. YMMV.
One thing to keep in mind is, D2 is a quickly moving target. You may need
fixes that are released in a version of dmd, but design changes in that
version may break your code in other ways. It might be best for
professional software products to wait until D2 is released before trying
to port.
Also, I'm not sure if the 3rd party libs you are using are ported yet...
-Steve
More information about the Digitalmars-d-learn
mailing list