lua-users home
lua-l archive

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


> Yes. Being able to check with "if setfenv then..." is more robust
> than having to branch on the version number (think n versions down
> the road).

It may be more robust, but it is a trick anyway. Several features
cannot be cheked that way, for instance whether string.format supports
'%a' or 'load' supports a mode or 'os.execute' returns new-style
results. Version numbers not always help, as some of these features
depend on the platform or compilation options.

-- Roberto