[Date Prev][Date Next][Thread Prev][Thread Next]
- Subject: Re: [ANN] Lua 5.2.0 (beta-rc5) now available
- From: Roberto Ierusalimschy <roberto@...>
- Date: Tue, 5 Jul 2011 09:27:44 -0300
> 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.