jed-users mailing list

[2007 Date Index] [2007 Thread Index] [Other years]
[Thread Prev] [Thread Next]      [Date Prev] [Date Next]

Re: Jörg's LaTeX mode r100


Hallo Marko,

Marko Mahnic <marko.mahnic@xxxxxxxx> wrote:
> G. Milde wrote:
>> Why not. I see the point for smaller modules if
>> 
>> * not all code needs to be loaded if the main mode is used (autoloads)
>> * code can be used from different modes (cmisc.sl etc.)
>> 
>> I see not advantage (from the end-users point of view) if the
>> "outsourced" files are evaluated at some point during the evaluation of
>> the main mode.
>
>  From the programmers perspective it is better to split a large package
> into many smaller files even if they are always loaded. The
> package is easyer to mantain. (imagine jed code in one large C file ...)

ACK.

> For such cases it would probably be better to #include the files into
> the main file instead of evaluating them. In this case there could
> be one latex.sl and many latex_*.sli files. It would probably also make
> sense to put larger modes into separate subdirectories of lib. On
> compilation this would produce only one latex.slc file.
>
> This is just a suggestion since I think there is no such thing as
> #include in slang, but it might be worth considering.

I second this idea, because I wish :) an included file goes into the same
(private) namespace as the main file.

Bye, Jörg.
-- 
Objektivität ist die Wahnvorstellung, Beobachtungen könnten ohne
Beobachter gemacht werden – Heinz v. Foerster

--------------------------
To unsubscribe send email to <jed-users-request@xxxxxxxxxxx> with
the word "unsubscribe" in the message body.
Need help? Email <jed-users-owner@xxxxxxxxxxx>.


[2007 date index] [2007 thread index]
[Thread Prev] [Thread Next]      [Date Prev] [Date Next]