< Extension:Scribunto 
      This page documents changes in Lua 5.2 that may be of interest to those writing code for Lua 5.1. These may cause problems for reusers using Scribunto in unsupported configurations, and may be problematic if Scribunto is ever changed to use Lua 5.2 or later.
Known issues
| Issue | Replacement | 
|---|---|
| string.gfinddeprecated in 5.1, removed in 5.2 | Renamed to string.gmatch | 
| math.log10deprecated in 5.2 | In 5.2, use math.logwith base 10 | 
| math.moddeprecated in 5.1, removed in 5.2 | Renamed to math.fmod | 
| table.maxndeprecated in 5.2 | No replacement | 
| table.getndeprecated in 5.1, removed in 5.2 | Use the length operator #instead | 
| automatic argvariable in varargs function deprecated in 5.1, removed in 5.2 | Use the varargs operator ...instead | 
| tonumberonly works with integers when base 10 is explicitly specified in 5.2 | If non-integers need to be recognized, specify nilor omit the base | 
External links
    This article is issued from Mediawiki. The text is licensed under Creative Commons - Attribution - Sharealike. Additional terms may apply for the media files.