lua-users home
lua-l archive

Re: LUA_LDIR definition in luaconf.h (bug?)

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


> Shouldn't that be:
> #define LUA_LDIR LUA_EXECDIR"\\lua\\"
> #define LUA_CDIR LUA_EXECDIR"\\"
Actually it should be this:
 #define LUA_LDIR LUA_EXECDIR LUA_DIRSEP "lua" LUA_DIRSEP
and LUA_LDIR"?\\init.lua;" should be this:
 LUA_LDIR LUA_PATH_MARK LUA_DIRSEP "init.lua" LUA_PATHSEP
It seems to much bureaucracy for something that will seldom change (the
file says "Probably you do not need to change them."). I think the gain
in clarity for the common case more than compensate the work to change
them by hand when needed.
-- Roberto

AltStyle によって変換されたページ (->オリジナル) /