Page 1 of 1

Handling Modified Source Code - An Open Question

Posted: Mon Jul 14, 2008 11:48 am
by xProgrammer
I have made quite a few modifications to the FiveLinux classes. When I first started I just made them but as I needed a few more I surrounded them with comments. Now I am changing to using a #define and #ifdef's etc. which is possibly the best solution and probably how I should have started out in the first place. But I was wondering what others do.

Happy coding
xProgrammer

Posted: Tue Jul 15, 2008 5:23 pm
by Antonio Linares
Doug,

Some users inherits new classes from standard ones, and changes are placed in inherited ones.

Som users modify the standard ones, but then they are forced to include their changes in new builds.

Posted: Wed Jul 16, 2008 10:30 am
by xProgrammer
I did think about using inheritance but then I either have to write code that is very non-standard (@ <row>, <col> MyGET ....) or else I largely shift the update issue to modifying FiveLinux.ch. For an occasionally called class that might be ideal but probably not for one as fundamental as GET.

Regards
Doug
(xProgrammer)