ipairs
documentation doesn’t mention it also returns zero.
pairs
has been changed in Roblox, and it doesn’t return next
. It should also mention that it returns nil
as a third value. pairs
does not only work with arrays, so it should say table instead of array.
next
doesn’t work with only arrays, so it should say table instead of array.
assert
uses the errorMessage argument when the assertion fails. All values are returned when the assertion passes, not just the first argument.
getfenv
is not guaranteed to return array, it should say table instead of array. As mentioned, stack doesn’t have to be an integer, and can be a function, so it should be listed as Variant
.
In Roblox, print
doesn’t use the tostring function, but does check __tostring
.
select
also works with a negative index. (index -1 gets the last argument from args, index -2 gets the last 2 arguments from args, …)
It should be mentioned that the string must be the octothrope to get the number of arguments passed after cmd, and that using anything else will cause an error. (could the two descriptions of select
be merged?)
setmetatable
doesn’t only work for arrays, it should say table instead of array.
fenv doesn’t have to be an array, it should say table instead of array.
The optional chunkname
argument isn’t mentioned. (default is contents)
t doesn’t have to be an array, it should say table instead of array.
t doesn’t have to be an array, it should say table instead of array.
I think it should be mentioned that with base 10 hexadecimal numbers will also be interpreted.
In standard Lua tostring
must return a string, but in roblox this isn’t the case. (this might be a bug?)