From e1af4f31a1916a18d6ee0744bd91c1ee9d8651f4 Mon Sep 17 00:00:00 2001
From: Benoit Germain
Date: Tue, 24 Sep 2024 10:33:20 +0200
Subject: Modernized lanes.gen() base library list processing code
---
docs/index.html | 4 +++-
1 file changed, 3 insertions(+), 1 deletion(-)
(limited to 'docs')
diff --git a/docs/index.html b/docs/index.html
index 79b33f1..dc159f4 100644
--- a/docs/index.html
+++ b/docs/index.html
@@ -70,7 +70,7 @@
- This document was revised on 12-Jun-24, and applies to version 4.0.0.
+ This document was revised on 24-Sep-24, and applies to version 4.0.0.
@@ -681,6 +681,7 @@
Any non-nil value causes initialization of "base" and "jit" (the latter only for LuaJIT-based builds).
+ Trying to load a library not supported by the running Lua flavor will raise an error, unless the library name is postfixed with a '?'.
Initializing the standard libs takes a bit of time at each lane invocation. This is the main reason why "no libraries" is the default.
@@ -716,6 +717,7 @@
These tables are built from the modules listed here. required must be an array of strings, each one being the name of a module to be required. Each module is required with require() before the lanes function is invoked.
So, from the required module's point of view, requiring it manually from inside the lane body or having it required this way doesn't change anything. From the lane body's point of view, the only difference is that a module not creating a global won't be accessible.
Therefore, a lane body will also have to require a module manually, but this won't do anything more (see Lua's require documentation).
+ Module names may contain characters matching std::isalnum(c_) || c_ == '.' || c_ == '-' || c_ == '_'. Anything else is considered a valid name separator.
ATTEMPTING TO TRANSFER A FUNCTION REGISTERED BY A MODULE NOT LISTED HERE WILL RAISE AN ERROR.
--
cgit v1.2.3-55-g6feb