"Arnd Hanses" <[EMAIL PROTECTED]> wrote:

> The automatic check was introduced in a more or less recent emx fix.
> There are supposedly still emx libraries installed where the init() is
> necessary.

It is introduced in 0.9c  Since XFree86 doesn't work with 0.9b+fixes
It is not necessary.

>            Moreover it won't hurt and shows the reader of the code how
> the nls support works... Making the code transparent even for non-emx
> programmers was my main intention here.

1.0 is a dead end.  No one except emx programmers will see the code.

> This is a question of taste and coding style: Now LyX checks every time
> when a child is run. A global flag saves those checks.

Then let's move it to the class syssingleton in 1.1 rather than using
global variable.

> Instead of hiding OS-specific initialization, as much as possible
> should be done one time only at a central place. Imagine LyX suppport
> of a larger number of non-POSIX systems (WIN, BEOS, OS2-no-emx, Apple,
> etc.):
> Instead of chasing through the code for dozends or hundreds of
> different places with POSIX-dependencies a porter should be able to
> configure or enhance a centralized OS-support hook.

Your argument is reasonable.  But it assumes that programmers/porters
know in advance what kind of system specific routines are necessary
in every application.  This is not true, for requirements are diffrent
from one application to another.  In the course of time, what kind of
system specific routines are required for porting LyX to various platform
may change.  So it is OK to separate and collect these routines in a
centralized place, but the initialization a.k.a. loading of the methods
must be done in each class where they are necessary.

Regards,
        SMiyata

Reply via email to