<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://wiki.pttlink.org/index.php?action=history&amp;feed=atom&amp;title=Module%3ANo_globals%2Fsandbox</id>
	<title>Module:No globals/sandbox - Revision history</title>
	<link rel="self" type="application/atom+xml" href="https://wiki.pttlink.org/index.php?action=history&amp;feed=atom&amp;title=Module%3ANo_globals%2Fsandbox"/>
	<link rel="alternate" type="text/html" href="https://wiki.pttlink.org/index.php?title=Module:No_globals/sandbox&amp;action=history"/>
	<updated>2026-04-06T17:52:41Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.35.5</generator>
	<entry>
		<id>https://wiki.pttlink.org/index.php?title=Module:No_globals/sandbox&amp;diff=4233&amp;oldid=prev</id>
		<title>Kg7qin: 1 revision imported</title>
		<link rel="alternate" type="text/html" href="https://wiki.pttlink.org/index.php?title=Module:No_globals/sandbox&amp;diff=4233&amp;oldid=prev"/>
		<updated>2021-09-05T18:42:13Z</updated>

		<summary type="html">&lt;p&gt;1 revision imported&lt;/p&gt;
&lt;table class=&quot;diff diff-contentalign-left diff-editfont-monospace&quot; data-mw=&quot;interface&quot;&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;tr class=&quot;diff-title&quot; lang=&quot;en&quot;&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;← Older revision&lt;/td&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;Revision as of 18:42, 5 September 2021&lt;/td&gt;
				&lt;/tr&gt;
&lt;!-- diff cache key mediawiki:diff::1.12:old-4232:rev-4233 --&gt;
&lt;/table&gt;</summary>
		<author><name>Kg7qin</name></author>
	</entry>
	<entry>
		<id>https://wiki.pttlink.org/index.php?title=Module:No_globals/sandbox&amp;diff=4232&amp;oldid=prev</id>
		<title>en&gt;Yurik: added a comment to explain why require is done inline</title>
		<link rel="alternate" type="text/html" href="https://wiki.pttlink.org/index.php?title=Module:No_globals/sandbox&amp;diff=4232&amp;oldid=prev"/>
		<updated>2019-05-10T17:10:13Z</updated>

		<summary type="html">&lt;p&gt;added a comment to explain why require is done inline&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;local mt = getmetatable(_G) or {}&lt;br /&gt;
function mt.__index (t, k)&lt;br /&gt;
	if k ~= 'arg' then&lt;br /&gt;
		-- perf optimization here and below: do not load Module:TNT unless there is an error&lt;br /&gt;
		error(require('Module:TNT').format('I18n/No globals', 'err-read', tostring(k)), 2)&lt;br /&gt;
	end&lt;br /&gt;
	return nil&lt;br /&gt;
end&lt;br /&gt;
function mt.__newindex(t, k, v)&lt;br /&gt;
	if k ~= 'arg' then&lt;br /&gt;
		error(require('Module:TNT').format('I18n/No globals', 'err-write', tostring(k)), 2)&lt;br /&gt;
	end&lt;br /&gt;
	rawset(t, k, v)&lt;br /&gt;
end&lt;br /&gt;
setmetatable(_G, mt)&lt;/div&gt;</summary>
		<author><name>en&gt;Yurik</name></author>
	</entry>
</feed>