On Mon, 1 Mar 1999, Jean-Marc Lasgouttes wrote:

> >>>>> "Joacim" == Joacim Persson <[EMAIL PROTECTED]> writes:
> 
> Joacim> An alternative to lyx-server could be to have one lyxfunction
> Joacim> that finds and loads a module that is linked against the
> Joacim> executable, call a function in the module, handing it pointers
> Joacim> to the necessary high-level objects.  (or having a fixed
> Joacim> interface that the dynamic object accesses the main executable
> Joacim> through).
> 
> Would these problems be solved with a scripting language?

I suppose it depends on how the interface between a scripting language and
the core of lyx is designed.  If the scripting language accesses the core
only through lyxfunctions, it won't be much of a help regarding
extensibility.  A client couldn't be developed separate from the set of
available lyxfunctions -- for every odd new need, a new lyxfunction would
be necessary. :P   Maybe it's possible to have a scripting language that
can n/handle any arbitrary c++ object, but I have no idea how that would
be implemented.  If a scripting language should operate on such a low
level, it should be a language following the same paradigm as c++.
...like, c++? =)  (mixing fundamentally different paradigms is asking for
trouble imo)

A scripting language is useful, but only on a higher level of abstraction I
should think. (and a scripting language interpretator itself could be a
module)

The more interesting and complicated tasks would involve retrieving
information about the contents of the buffer, or portions thereof (the
current paragraph, chapter..), something which is difficult or even
impossible through text strings, but trivial with a dynamic object with
direct access to the objects in the core.  If the dynamic objects are
completely opaque to the core, the core won't have to be altered for a new
dynamic object. (a developer of a dynamic object should adapt some
self-disciplin, and avoid using more low-level features than necessary,
or he'll get a tough job keeping his module up-to-date with the core, but
that's his problem)


Joacim
-
With both feet on the ground, you won't get very far.
                -- Loesje

Reply via email to