Counter for length of chains of __call metamethods

This counter will allow (in a later commit) error messages to correct
argument numbers in functions called through __call metamethods.
This commit is contained in:
Roberto Ierusalimschy
2024-11-16 12:00:28 -03:00
parent f12ce4029d
commit b117bdb344
4 changed files with 68 additions and 28 deletions

View File

@@ -9392,6 +9392,10 @@ If you need to change it,
declare a local variable with the same name in the loop body.
}
@item{
A chain of @id{__call} metamethods can have at most 15 objects.
}
}
}