Zitat von Martin Friebe <[EMAIL PROTECTED]>:

> Hi
>
> I was just wondering, in Synedit, there are many Lazarus specific
> modifications. On top of this the original code (or what I believe to be
> the original code) is kept.
> They are distinguished by "IFDEF SYNLAZ" statements.
>
> The question is what is the reason to keep the old/original code? As far
> as I can see it isn't even used. Because until a week ago one of the
> IFDEF had its IF/ELSE blocks swapped, so the Non-Laz version would have
> a reference to a Method only defined in the Laz-Version. In other words
> until a week ago, the non-laz version afaik wouldn't even have compiled.

It was the goal that lazarus uses the code of the synedit project with some
modifications. And contribute the mods back so that one version can be used for
lazarus and delphi..

If the ifdefs are removed, I fear that people start code formatting and
refactoring and then it will be much harder/impossible to fetch the
differences. Unless you know/write a tool for that.

So, it's true that the $else parts are not actively used.

Mattias


_______________________________________________
Lazarus mailing list
[email protected]
http://www.lazarus.freepascal.org/mailman/listinfo/lazarus

Reply via email to