lua-users home
lua-l archive

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



On Feb 12, 2005, at 16:25, Mike Pall wrote:

This does not work when the underlying filesystem is case-insensitive
(e.g. on Windows).

Hmmm... right... but... isn't ANSI C and Lua case sensitive to a certain extend?

Plus, the underlying file names will never collide: 'LuaSocket.lua' vs 'LuaSocket.dll'.

The heuristic for require() could be that if you require something starting with an uppercase, then check 'package.path'. Otherwise, try 'package.cpath'.

Wouldn't that work somehow?

Cheers

--
PA, Onnay Equitursay
http://alt.textdrive.com/