lua-users home
lua-l archive

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

One question:

Is there a way to "try" require, that is to find out whether a module would exist, without causing a major alert. Of course, pcall() can be used for this.. is that the way?

I'd use it for code where extra abilities can be enabled (s.a. ftp upload if sockets are around) but even without them, the code can do some stuff.