lua-users home
lua-l archive

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


>>>>> "Soni" == Soni \"They/Them\" L <fakedme@gmail.com> writes:

 Soni> if you have foo/init.lua you can require it as either "foo" or
 Soni> "foo.init" and I think lua should detect these and error if you
 Soni> don't use the shorter one.

Why not just put

assert(not string.match((...),"%.init$"), "wrong name")

near the top of your init.lua?

-- 
Andrew.