lua-users home
lua-l archive

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


The main reason - backward compatibility with existing DLLs.


Win32 APIs.
LoadResource().
LoadString().
GetTimestampForLoadedLibrary()

The alternative for me is to load the library again for the debug APIs
or create a
a table like

_HMODULE['modulename'] = hmodule

either way I rewrite some more code.

DB



On Tue, 21 Dec 2004 11:33:54 -0200, Roberto Ierusalimschy
<roberto@inf.puc-rio.br> wrote:
> > loadlib()  for Win32 in 5.0.2 passes the library handle as an upvalue
> > to the called function.
> > Can this behaviour be maintained in Lua 5.1?
> 
> For what?
> 
> -- Roberto
>