Преглед на файлове

Documentation for "LUA_NOENV"

Registry field "LUA_NOENV" (that signals to libraries that option -E
is on) now part of the "official" API of Lua stand-alone.
Roberto Ierusalimschy преди 1 година
родител
ревизия
9363a8b990
променени са 1 файла, в които са добавени 4 реда и са изтрити 0 реда
  1. 4 0
      manual/manual.of

+ 4 - 0
manual/manual.of

@@ -9026,6 +9026,10 @@ Lua does not consult any environment variables.
 In particular,
 In particular,
 the values of @Lid{package.path} and @Lid{package.cpath}
 the values of @Lid{package.path} and @Lid{package.cpath}
 are set with the default paths defined in @id{luaconf.h}.
 are set with the default paths defined in @id{luaconf.h}.
+To signal to the libraries that this option is on,
+the stand-alone interpreter sets the field
+@idx{"LUA_NOENV"} in the registry to a true value.
+Other libraries may consult this field for the same purpose.
 
 
 The options @T{-e}, @T{-l}, and @T{-W} are handled in
 The options @T{-e}, @T{-l}, and @T{-W} are handled in
 the order they appear.
 the order they appear.