On Fri, Dec 12, 2008 at 18:41, Mattias Gärtner
<[email protected]> wrote:
> Zitat von Alexander Klenin <[email protected]>:
>> I should note that I was horrified by the amount of "glue" code needed
>> to route an event through main form, source notebook, source editor and
>> SynEdit.
>
> The IDE is structured in a hierarchy.
>
> mainide: the top level of the IDE and the central nerve system. Because of its
> size it's splitted into several units.

Oh, hierarchy is good in itself -- it is not what I am ranting about.
(Although I'd say that main.pp, at 15000 lines, is in dire need of
further splitting).

However, to add another event to SynEdit, I had to add two useless events
and two useless event handlers, totally containing more code then the
original event
-- simply to marshal the call through the hierarchy (see patch in the
issue for details).
This is IMHO not optimal design ;-)

-- 
Alexander S. Klenin
Insight Experts Ltd.

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

Reply via email to