Corrections to published LUA101 material, newest first, grouped by the edition they correct, which is named by its release date. Each entry gives the date, the file, and what changed, so you can tell whether the version you used had the error.
The 2026-11-25 edition¶
November 29, 2026. Module 10’s
first_lineexample again marks where the file closes when the read fails. Lab 13’s check now tests thegcdrange error and the smallest integer, and the exercise names the error message,gcd out of range. Module 14’s summary again lists the sandbox’s allowlist, hook, error at every instruction, andpcallwrapper, which the reading still teaches. Module 10, Lab 13, and Module 14November 27, 2026. The setup guide now identifies the two notebook cells to run and the hererocks installation that supplies Lab 13 with its Lua interpreter, headers, and library. Setup
November 27, 2026. A pending
<close>local prevents a tail call. A coroutine that ends with an error can still have locals waiting to close. The readings now explain when cleanup runs and when the caller needscoroutine.close. Module 2, Module 9, and Module 10November 27, 2026. The table and text readings clarify how Lua finds a length border, removes a middle item, and counts UTF-8 code points. The later examples explain why weak caches keep numeric entries, when
requirereloads a module, and which values can use__eq. Tables, strings, closures, modules, metatables, and memoryNovember 27, 2026. The C host now checks script loading, error objects, and return types. The lab and its key handle integer range and userdata cleanup. The host guidance also clarifies large integer IDs across Lua versions and which resource limits need an external supervisor. The capstone notes identify the LuaJIT version supplied with LÖVE 11.4. Lua and C, Lab 13, and versions and hosts
2026-11-25,
setup.mdand the final project: building Lua with hererocks on Linux stopped withreadline/readline.h: No such file or directorywhen the GNU Readline headers weren’t installed, because hererocks builds Lua with readline unless told not to.setup.mdnow lists the headers, with the command that installs them, and says how to build without them. The final project’s GitHub Actions workflow now passes--no-readline, because GitHub’subuntu-latestmachines don’t have the headers.