[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: Re: Namespace for 'require' (was: Re: LuaSocket & require & 5.1 howto?)
- From: PA <petite.abeille@...>
- Date: Sat, 12 Feb 2005 17:06:24 +0100
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/