Andre Poenitz <[EMAIL PROTECTED]> writes:

| On Fri, Mar 15, 2002 at 01:10:29PM +0100, Lars Gullik Bjønnes wrote:
>> | _Why_ does an inset need to know about its surrounding paragraph?
>> 
>> somethings needs to know, whether it is a visitor function or a
>> function in the class it self.
>
| But it does not have to _store_ the information, does it?
>
>> So, by applying a visitor pattern to paragraphs and insets for
>> drawing,output etc. We can have a lot less information in the objects,
>> but we still need access to the information somewhere.
>
| Sure one needs to hand down stuff _somehow_. My point is that storing
| "permanent" pointers to "authorities" and keeping them up-to-date is
| painful compared to passing around the required information when it is
| needed. Especially when the "authorities" (aka Paragraph/Buffer/LyXView)
| have a tendency to mutate over time...

Yes... but we also want to avoid to have a Buffer, Paragraph or
whatever parametere to every function all over.

-- 
        Lgb

Reply via email to