[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: Confusing wording in manual (function `error`)
- From: Lorenzo Donati <lorenzodonatibz@...>
- Date: Tue, 19 May 2020 12:41:06 +0200
Hi Lua Team!
The description of `error` says:
"Terminates the last protected function called and returns message as
the error object. This function never returns."
Which is quite confusing (especially for newbies).
I'd suggest a change like:
"Terminates the last protected function called and raises (throws?) an
error having message as the error object. This function never returns."
This issue is in the manual of both Lua 5.3.5 and Lua 5.4.0-rc3
(actually it's the same wording since 5.1).
-- Lorenzo