|
Archives
D Programming
digitalmars.Ddigitalmars.D.bugs digitalmars.D.dtl digitalmars.D.ide digitalmars.D.dwt digitalmars.D.announce digitalmars.D.learn digitalmars.D.debugger D.gnu D C/C++ Programming
c++c++.announce c++.atl c++.beta c++.chat c++.command-line c++.dos c++.dos.16-bits c++.dos.32-bits c++.idde c++.mfc c++.rtl c++.stl c++.stl.hp c++.stl.port c++.stl.sgi c++.stlsoft c++.windows c++.windows.16-bits c++.windows.32-bits c++.wxwindows digitalmars.empire digitalmars.DMDScript electronics |
digitalmars.D.learn - Porting 1.x libraries to 2.x
What strategies do library authors have for maintaining two versions of a their code - one for D 1.0 and another for 2.0? When they make changes to one version, do they manually copy them into the other branch? Or is there a way of automating the process? Version blocks don't seem to help much. I'm finding it very tedious and somewhat haphazard going the manual route - it's easy to forget, and sometimes I get so carried away adding new code to my 1.0 library that it's a struggle to recall every line I've changed. Ideally, I'd just update the 1.0 branch and run a script to make the necessary changes for it to compile with DMD 2.0. Do Unix/Linix people use the patch command for this (and is there a Windows equivalent)? Thanks, John. Jun 10 2009
On Wed, 10 Jun 2009 04:30:53 -0400, John C wrote:What strategies do library authors have for maintaining two versions of a their code - one for D 1.0 and another for 2.0? When they make changes to one version, do they manually copy them into the other branch? Or is there a way of automating the process? Version blocks don't seem to help much. I'm finding it very tedious and somewhat haphazard going the manual route - it's easy to forget, and sometimes I get so carried away adding new code to my 1.0 library that it's a struggle to recall every line I've changed. Ideally, I'd just update the 1.0 branch and run a script to make the necessary changes for it to compile with DMD 2.0. Do Unix/Linix people use the patch command for this (and is there a Windows equivalent)? Jun 10 2009
Derek Parnell wrote: <snip> Jun 11 2009
|