lua-users home
lua-l archive

[Date Prev][Date Next][Thread Prev][Thread Next] [Date Index] [Thread Index]

On Wed, Mar 31, 2004 at 04:07:06PM -0500, Doug Currie wrote:
> Off the top of my head, I can think of two things a stub loader needs
> to handle: 1. disk, directory, and path name syntax issues across
> platforms 

This should be done in one place, not every stub.

> 2. libraries needed on some platforms and not on others
> (e.g., posix emulation, popen emulation); or perhaps different
> libraries on each platform to provide the same functions (e.g., fs.lua
> on Win32 and posix.lua on linux).

It should be possible to do most of these checks dynamically in the script, 
and in any case, the choices are between unix and windows or some other
non-unix and platform and thus not related to the share vs. lib issue at

> Retch. I guess you don't read the luacheia list? Libtool is an
> abomination on many platforms, and a cause of much suffering.

It has some problems, but has made at least my live much easier
compared to trying to support all the intricacies of different
platforms directly in my program. (*BSD:s want underscore symbol
prefixes, DLL:s are archaic and need a lot of kludging to use
them [even libtool doesn't seem to always work with them], and
so on.)