lua-users home
lua-l archive

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


2010/1/9 Ignacio Burgueño <ignaciob@inconcertcc.com>:
> Say I have a package called "foo.bar" (that is, the file "bar.lua" in the
> directory "foo")
> It is accessible in the path, so require "foo.bar" works.
> But in foo\bar.lua, this won't work.
>
> print(package.searchpath((...))) -- gives an error, looks for "foo.bar"
> instead of "foo\\bar"

This bug deserves more visibility. I can confirm that this very useful
little function is not converting dots to slashes when looking up
modules. Unless this is intended, although that would seem rather odd.

steve d.