Page 1 of 1

zeos.inc and versioning

Posted: 09.09.2010, 15:35
by marcov
I noticed that Zeos stil uses versions (150below) etc to steer condiitional code.

This can be a bit clumsy specially with two different version hierarchies (FPC's and Delphi's). It can be easier to move to a capability based system as described in this document:

http://www.stack.nl/~marcov/porting.pdf

(originally written for the Delphi-jedi list somewhere in the 2000-2003 timeframe)

Posted: 19.09.2010, 21:13
by mdaems
Thanks marcov,

I did read your essay with much interest. Unfortunately changing the code this way might be a lot of work. And exactly that (time) is missing at the moment.
The more : I don't know the reason for most of the conditional code, so it will be difficult to name the capabilities that require the conditional code.
Even worse : I have no idea about the capabilities the different compilers have.

So I'll try to think about it when creating more conditional code. But converting the existing codebase isn't a real option at the moment, I'm afraid.
Unless... someone pops up who wants to take the initiative, of course.

Mark

Posted: 21.09.2010, 09:14
by marcov
It doesn't have to be a bigbang change. You can do it gradually as you find out things.