lua-users home
lua-l archive

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


> > > > I think a convenient solution would be to strip an underscore prefix
> > > > from the module name before generating the init function name.
> > >
> > > ...
> > 
> > In fact identically named symbols from different shared libraries
> > should not conflict. At least not the way Lua loads them:
> > 
> > 
> > So, I do not see a problem with this change.
> > 
> 
> I  do, What happens when we wish to statically link the library.

Another option is to strip *up to* the first underscore. That way we
can rename a file foo.so both to _foo.so and to a/_foo.so. We also can
rename a file a/foo.so to a/_a_foo.so ;)

-- Roberto