[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: searchpath bug: (Was [ANN] Lua 5.2.0 (work1) now available)
- From: steve donovan <steve.j.donovan@...>
- Date: Sun, 10 Jan 2010 09:17:12 +0200
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.