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
Handling Modified Source Code - An Open Question
- xProgrammer
- Posts: 464
- Joined: Tue May 16, 2006 7:47 am
- Location: Australia
- Antonio Linares
- Site Admin
- Posts: 37481
- Joined: Thu Oct 06, 2005 5:47 pm
- Location: Spain
- Contact:
- xProgrammer
- Posts: 464
- Joined: Tue May 16, 2006 7:47 am
- Location: Australia
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)
Regards
Doug
(xProgrammer)