lua-users home
lua-l archive

searchpath bug: (Was [ANN] Lua 5.2.0 (work1) now available)

[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.

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