changeset 1814:0ead5c6b07b0

minor
author Franklin Schmidt <fschmidt@gmail.com>
date Tue, 11 Jun 2024 11:32:36 -0600
parents fa0e73119b7c
children 3dabc11da660
files src/luan/modules/Luan.luan website/src/diff.html.luan
diffstat 2 files changed, 4 insertions(+), 4 deletions(-) [+]
line wrap: on
line diff
--- a/src/luan/modules/Luan.luan	Mon Jun 10 23:19:40 2024 -0600
+++ b/src/luan/modules/Luan.luan	Tue Jun 11 11:32:36 2024 -0600
@@ -1,5 +1,5 @@
 require "java"
-local JavaLuan = require "java:luan.Luan"
+local LuanJava = require "java:luan.Luan"
 local BasicLuan = require "java:luan.modules.BasicLuan"
 local TableLuan = require "java:luan.modules.TableLuan"
 local LuanParser = require "java:luan.modules.parsers.LuanParser"
@@ -51,8 +51,8 @@
 	return load( "return "..s, source_name or "eval", env )()
 end
 
-if JavaLuan.args ~= nil then
-	local args = TableLuan.toTable(JavaLuan.args)
+if LuanJava.args ~= nil then
+	local args = TableLuan.toTable(LuanJava.args)
 	if #args > 0 then
 		args[0] = TableLuan.remove(args,1)
 	end
--- a/website/src/diff.html.luan	Mon Jun 10 23:19:40 2024 -0600
+++ b/website/src/diff.html.luan	Tue Jun 11 11:32:36 2024 -0600
@@ -39,7 +39,7 @@
 
 <p>The Luan <em>table</em> type is just like its Lua equivalent, but implemented in Java.</p>
 
-<p>Luan does not have the Lua <em>thread</em> type which aren't actually threads but in fact are coroutines.  Luan has real threads.  This is particularly valuable for web serving where each request is handled by a thread.  But thread synchronization is too complicated for application programmers.  So Luan makes objects (tables) immutable when they become accessible by multiple threads.  This eliminates the need for thread synchronization.  If there is a need to share mutable state across threads, there are special thread-local functions for this.</p>
+<p>Luan does not have the Lua <em>thread</em> type which aren't actually threads but in fact are coroutines.  Luan has real threads.  This is particularly valuable for web serving where each request is handled by a thread.  But thread synchronization is too complicated for application programmers.  So Luan makes mutable objects immutable when they become accessible by multiple threads.  This eliminates the need for thread synchronization.  If there is a need to share mutable state across threads, there are special functions for this.</p>
 <%
 				end
 			}