lua-users home
lua-l archive

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


Congratulations and thanks for the alpha release.

The luaconf.h code has 

#define LUA_CPATH_DEFAULT \
	"?.dll;"  LUA_CDIR"\\?.dll;" LUA_CDIR"\\loadall.dll"

This is not the best default. The first call to LoadLibrary() will
make an unqualified call to LoadLibrary() using the Win32
search strategy(not good and slow). e.g.  LoadLibrary("my.dll")

The point of the module directory idea was to provide a fully
qualified path(quick).

I believe the above define should be:

#define LUA_CPATH_DEFAULT \
	LUA_CDIR"\\?.dll;"  "?.dll;"  LUA_CDIR"\\loadall.dll"

David Burgess

PS.
my preference is also to change

#define LUA_CDIR	"!\\dll"
to
#define LUA_CDIR	"!"