<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
		<id>https://www.computercraft.info/wiki/api.php?action=feedcontributions&amp;feedformat=atom&amp;user=Creator</id>
		<title>ComputerCraft Wiki - User contributions [en]</title>
		<link rel="self" type="application/atom+xml" href="https://www.computercraft.info/wiki/api.php?action=feedcontributions&amp;feedformat=atom&amp;user=Creator"/>
		<link rel="alternate" type="text/html" href="https://www.computercraft.info/wiki/Special:Contributions/Creator"/>
		<updated>2026-07-11T08:04:04Z</updated>
		<subtitle>User contributions</subtitle>
		<generator>MediaWiki 1.24.1</generator>

	<entry>
		<id>https://www.computercraft.info/wiki/index.php?title=User:Creator&amp;diff=7055</id>
		<title>User:Creator</title>
		<link rel="alternate" type="text/html" href="https://www.computercraft.info/wiki/index.php?title=User:Creator&amp;diff=7055"/>
				<updated>2015-06-20T14:00:32Z</updated>
		
		<summary type="html">&lt;p&gt;Creator: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;Hi folks, this is my Wiki account.&lt;br /&gt;
&lt;br /&gt;
Nice, don't you think?&lt;br /&gt;
&lt;br /&gt;
Be sure to visit &amp;lt;span class=&amp;quot;plainlinks&amp;quot;&amp;gt;[http://www.computercraft.info/forums2/index.php?/user/33826-creator/ me]&amp;lt;/span&amp;gt; on the forums!&lt;/div&gt;</summary>
		<author><name>Creator</name></author>	</entry>

	<entry>
		<id>https://www.computercraft.info/wiki/index.php?title=User:Creator&amp;diff=7054</id>
		<title>User:Creator</title>
		<link rel="alternate" type="text/html" href="https://www.computercraft.info/wiki/index.php?title=User:Creator&amp;diff=7054"/>
				<updated>2015-06-20T13:59:52Z</updated>
		
		<summary type="html">&lt;p&gt;Creator: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;Hi folks, this is my Wiki account.&lt;br /&gt;
&lt;br /&gt;
Nice, don't you think?&lt;br /&gt;
&lt;br /&gt;
Be sure to visit [http://www.computercraft.info/forums2/index.php?/user/33826-creator/ me] on the forums!&lt;/div&gt;</summary>
		<author><name>Creator</name></author>	</entry>

	<entry>
		<id>https://www.computercraft.info/wiki/index.php?title=User:Creator&amp;diff=7053</id>
		<title>User:Creator</title>
		<link rel="alternate" type="text/html" href="https://www.computercraft.info/wiki/index.php?title=User:Creator&amp;diff=7053"/>
				<updated>2015-06-20T13:45:55Z</updated>
		
		<summary type="html">&lt;p&gt;Creator: Created page with &amp;quot;Hi folks, this is my Wiki account.  Nice, don't you think?  Be sure to visit [me = http://www.computercraft.info/forums2/index.php?/user/33826-creator/] on the forums!&amp;quot;&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;Hi folks, this is my Wiki account.&lt;br /&gt;
&lt;br /&gt;
Nice, don't you think?&lt;br /&gt;
&lt;br /&gt;
Be sure to visit [me = http://www.computercraft.info/forums2/index.php?/user/33826-creator/] on the forums!&lt;/div&gt;</summary>
		<author><name>Creator</name></author>	</entry>

	<entry>
		<id>https://www.computercraft.info/wiki/index.php?title=Delete&amp;diff=7026</id>
		<title>Delete</title>
		<link rel="alternate" type="text/html" href="https://www.computercraft.info/wiki/index.php?title=Delete&amp;diff=7026"/>
				<updated>2015-05-08T14:18:49Z</updated>
		
		<summary type="html">&lt;p&gt;Creator: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{Stub|Needs more info about the program itself, perhaps an image?}}&lt;br /&gt;
Delete is a [[CraftOS Shell|built in program for computers and turtles]] that will delete the specified source file or directory. As of version 1.6, it supports wildcards by use of [[fs.find]]. It ''cannot'' remove read-only files such as the rom folder or anything in the rom folder. Instead of delete, it is also possible to use rm (remove).&lt;br /&gt;
&lt;br /&gt;
{{Example&lt;br /&gt;
|desc=Removes regular file /foo&lt;br /&gt;
|code=delete /foo&lt;br /&gt;
}}&lt;br /&gt;
&lt;br /&gt;
{{Example&lt;br /&gt;
|desc=Removes all the files and directories&lt;br /&gt;
|code=delete *&lt;br /&gt;
}}&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[Category:Programs]]&lt;/div&gt;</summary>
		<author><name>Creator</name></author>	</entry>

	<entry>
		<id>https://www.computercraft.info/wiki/index.php?title=Delete&amp;diff=7025</id>
		<title>Delete</title>
		<link rel="alternate" type="text/html" href="https://www.computercraft.info/wiki/index.php?title=Delete&amp;diff=7025"/>
				<updated>2015-05-08T14:17:22Z</updated>
		
		<summary type="html">&lt;p&gt;Creator: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{Stub|Needs more info about the program itself, perhaps an image?}}&lt;br /&gt;
Delete is a [[CraftOS Shell|built in program for computers and turtles]] that will delete the specified source file or directory. As of version 1.6, it supports wildcards by use of [[fs.find]]. It ''cannot'' remove read-only files such as the rom folder or anything in the rom folder.&lt;br /&gt;
&lt;br /&gt;
{{Example&lt;br /&gt;
|desc=Removes regular file /foo&lt;br /&gt;
|code=delete /foo&lt;br /&gt;
}}&lt;br /&gt;
&lt;br /&gt;
{{Example&lt;br /&gt;
|desc=Removes all the files and directories&lt;br /&gt;
|code=delete *&lt;br /&gt;
}}&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[Category:Programs]]&lt;/div&gt;</summary>
		<author><name>Creator</name></author>	</entry>

	<entry>
		<id>https://www.computercraft.info/wiki/index.php?title=Delete&amp;diff=7024</id>
		<title>Delete</title>
		<link rel="alternate" type="text/html" href="https://www.computercraft.info/wiki/index.php?title=Delete&amp;diff=7024"/>
				<updated>2015-05-08T14:16:59Z</updated>
		
		<summary type="html">&lt;p&gt;Creator: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{Stub|Needs more info about the program itself, perhaps an image?}}&lt;br /&gt;
Delete is a [[CraftOS Shell|built in program for computers and turtles]] that will delete the specified source file or directory. As of version 1.6, it supports wildcards by use of [[fs.find]]. It ''cannot'' remove read-only files such as the rom folder or anything in the rom folder.&lt;br /&gt;
&lt;br /&gt;
{{Examples&lt;br /&gt;
|desc=Removes regular file /foo&lt;br /&gt;
|code=delete /foo&lt;br /&gt;
}}&lt;br /&gt;
{{Example&lt;br /&gt;
|desc=Removes all the files and directories&lt;br /&gt;
|code=delete *&lt;br /&gt;
}}&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[Category:Programs]]&lt;/div&gt;</summary>
		<author><name>Creator</name></author>	</entry>

	<entry>
		<id>https://www.computercraft.info/wiki/index.php?title=Delete&amp;diff=7023</id>
		<title>Delete</title>
		<link rel="alternate" type="text/html" href="https://www.computercraft.info/wiki/index.php?title=Delete&amp;diff=7023"/>
				<updated>2015-05-08T14:16:09Z</updated>
		
		<summary type="html">&lt;p&gt;Creator: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{Stub|Needs more info about the program itself, perhaps an image?}}&lt;br /&gt;
Delete is a [[CraftOS Shell|built in program for computers and turtles]] that will delete the specified source file or directory. As of version 1.6, it supports wildcards by use of [[fs.find]]. It ''cannot'' remove read-only files such as the rom folder or anything in the rom folder.&lt;br /&gt;
&lt;br /&gt;
{{Examples&lt;br /&gt;
|desc=Removes regular file /foo&lt;br /&gt;
|code=delete /foo&lt;br /&gt;
|desc=Removes all the files and directories&lt;br /&gt;
|code=delete *&lt;br /&gt;
}}&lt;br /&gt;
&lt;br /&gt;
[[Category:Programs]]&lt;/div&gt;</summary>
		<author><name>Creator</name></author>	</entry>

	<entry>
		<id>https://www.computercraft.info/wiki/index.php?title=Os.loadAPI&amp;diff=7022</id>
		<title>Os.loadAPI</title>
		<link rel="alternate" type="text/html" href="https://www.computercraft.info/wiki/index.php?title=Os.loadAPI&amp;diff=7022"/>
				<updated>2015-05-08T14:10:36Z</updated>
		
		<summary type="html">&lt;p&gt;Creator: Small inversion removed&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{Lowercase}}&lt;br /&gt;
{{Function&lt;br /&gt;
|name=os.loadAPI&lt;br /&gt;
|args={{type|string}} path&lt;br /&gt;
|api=OS&lt;br /&gt;
|returns={{type|boolean}} did the API load successfully?&lt;br /&gt;
|addon=ComputerCraft&lt;br /&gt;
|desc=Loads a user created API from a file located at &amp;lt;var&amp;gt;path&amp;lt;/var&amp;gt;.&lt;br /&gt;
&amp;lt;br/&amp;gt;&lt;br /&gt;
This function runs the file, collects all global (non-localized) variables from it and puts them into a [[table_(type)|table]] into the global (&amp;lt;var&amp;gt;_G&amp;lt;/var&amp;gt;) environment. The name of the file becomes the name of the table.&lt;br /&gt;
|examples={{Example&lt;br /&gt;
 |desc=Loads an API saved at &amp;quot;''test/myAPI''&amp;quot; and runs the global function &amp;quot;''hello''&amp;quot; from it.&lt;br /&gt;
 |code='''''--test/myAPI:'''''&lt;br /&gt;
 &lt;br /&gt;
 local text = &amp;quot;Hello World!&amp;quot; ''-- this won't be seen from outside of the API because it is localized''&lt;br /&gt;
 &lt;br /&gt;
 function hello () ''-- this will be seen from outside the API because it is '''not''' localized''&lt;br /&gt;
   [[print]](text)&lt;br /&gt;
 end&lt;br /&gt;
&lt;br /&gt;
 '''''--The program that will use &amp;quot;myAPI&amp;quot;'''''&lt;br /&gt;
 &lt;br /&gt;
 '''os.loadAPI(&amp;quot;test/myAPI&amp;quot;)''' ''-- load the API''&lt;br /&gt;
 &lt;br /&gt;
 myAPI.hello() ''-- runs the function &amp;quot;hello&amp;quot; from the API''&lt;br /&gt;
 |output=Hello World!&lt;br /&gt;
 }}&lt;br /&gt;
|notes=&lt;br /&gt;
* &amp;lt;var&amp;gt;path&amp;lt;/var&amp;gt; '''must''' be an absolute path.&lt;br /&gt;
* All variables which will be needed to be accessed through ''&amp;lt;apiname&amp;gt;.&amp;lt;variable/function&amp;gt;'' '''must''' be global.&lt;br /&gt;
* By default APIs '''cannot''' access [[shell_(API)|shell API]] and [[multishell_(API)|multishell API]].&lt;br /&gt;
}}&lt;/div&gt;</summary>
		<author><name>Creator</name></author>	</entry>

	<entry>
		<id>https://www.computercraft.info/wiki/index.php?title=Coal&amp;diff=7021</id>
		<title>Coal</title>
		<link rel="alternate" type="text/html" href="https://www.computercraft.info/wiki/index.php?title=Coal&amp;diff=7021"/>
				<updated>2015-05-07T21:48:49Z</updated>
		
		<summary type="html">&lt;p&gt;Creator: Added some info&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{Stub}}&lt;br /&gt;
Coal is a item added by vanilla Minecraft. It is used as a fuel for Turtles. It has a refuel value of 80.&lt;br /&gt;
&lt;br /&gt;
[http://www.minecraftwiki.net/wiki/Coal| See the minecraft wiki] for more information. &lt;br /&gt;
&lt;br /&gt;
It can be found underground, but, on rare occasions, spawns on the surface.&lt;/div&gt;</summary>
		<author><name>Creator</name></author>	</entry>

	<entry>
		<id>https://www.computercraft.info/wiki/index.php?title=Metatable&amp;diff=7020</id>
		<title>Metatable</title>
		<link rel="alternate" type="text/html" href="https://www.computercraft.info/wiki/index.php?title=Metatable&amp;diff=7020"/>
				<updated>2015-05-07T21:46:32Z</updated>
		
		<summary type="html">&lt;p&gt;Creator: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{NeedsWork|Not enough info, perhaps incorrect info}}&lt;br /&gt;
&lt;br /&gt;
A metatable is an addition on to normal tables for adding metamethods, making classes as well as protecting functions. When a certain action is performed on a table, lua checks whether the corresponding __metatable field exists. For example, when you want to access the index bar in the table foo, but foo.bar does not exist, if the table has __index as a __metatable field, lua will call the __index field. If it's value is another table, lua will search for the index in the new table; however, if the value is a function, lua will pass the table name and the index as arguments.&lt;br /&gt;
&amp;lt;!-- Possibly more, I don't know about any other application, unfortunately --~~~~ --&amp;gt;&lt;br /&gt;
== Setting and getting a metatable ==&lt;br /&gt;
&lt;br /&gt;
You will use setMetatable and getMetatable to set and get metatables.&lt;br /&gt;
&lt;br /&gt;
You use getMetatable(table) to get your metatable from a table. It will return the __metatable metafield&lt;br /&gt;
in the table.&lt;br /&gt;
&lt;br /&gt;
setMetatable(table, metatable) to set your table's metatable. It will error if the __metatable metafield&lt;br /&gt;
is set.&lt;br /&gt;
&lt;br /&gt;
However, if the table has a metatable with the metafield __metatable, it will error when you use setMetatable and return what it is set to when getMetatable is called.&lt;br /&gt;
&lt;br /&gt;
== Metamethods ==&lt;br /&gt;
&lt;br /&gt;
A metamethod is a type of function which changes the default way a table acts. The table below demonstrates what each&lt;br /&gt;
one is called, and how each one is used. &amp;lt;br/&amp;gt;&lt;br /&gt;
&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
|-&lt;br /&gt;
| Name || Description || Arguments passed&lt;br /&gt;
|-&lt;br /&gt;
| __index&lt;br /&gt;
| Used when table[variable] is called.&lt;br /&gt;
| The variable.&lt;br /&gt;
|-&lt;br /&gt;
| __newindex&lt;br /&gt;
| Used like __index, but it is only called when the variable matches an empty space in the table.&lt;br /&gt;
| The variable.&lt;br /&gt;
|-&lt;br /&gt;
| __call&lt;br /&gt;
| A metamethod to turn a table's name into a function, or whatever you want it to do.&lt;br /&gt;
| Function, Tuple&lt;br /&gt;
|-&lt;br /&gt;
| __metatable&lt;br /&gt;
| Used for protecting metatables, called when getmetatable() is used on the table, setmetatable() just errors.&lt;br /&gt;
| Nothing (as far as Unit158 knows)&lt;br /&gt;
|-&lt;br /&gt;
| __mul&lt;br /&gt;
| Used as an operator overloader for multiplication.&lt;br /&gt;
| The two objects being &amp;quot;multiplied&amp;quot;.&lt;br /&gt;
|-&lt;br /&gt;
| __div&lt;br /&gt;
| Used as an operator overloader for division.&lt;br /&gt;
| The two objects being &amp;quot;divided&amp;quot;.&lt;br /&gt;
|-&lt;br /&gt;
| __sub&lt;br /&gt;
| Used as an operator overloader for substraction.&lt;br /&gt;
| The two objects being &amp;quot;subtracted&amp;quot;.&lt;br /&gt;
|-&lt;br /&gt;
| __add&lt;br /&gt;
| Used as an operator overloader for addition.&lt;br /&gt;
| The two objects being &amp;quot;added&amp;quot;.&lt;br /&gt;
|-&lt;br /&gt;
| __mod&lt;br /&gt;
| Used as an operator overloader for modulo.&lt;br /&gt;
| The two objects being &amp;quot;divided&amp;quot;.&lt;br /&gt;
|-&lt;br /&gt;
| __pow&lt;br /&gt;
| Used as an operator overloader for exponentiation operation.&lt;br /&gt;
| The two objects being exponentiated.&lt;br /&gt;
|-&lt;br /&gt;
| __unm&lt;br /&gt;
| I am not exactly sure how this one works, it is for negatives though.&lt;br /&gt;
| The table being changed into a negative. &amp;lt;!-- Feel free to change this one X] --&amp;gt;&lt;br /&gt;
|-&lt;br /&gt;
| __eq&lt;br /&gt;
| __eq is an operator overloader for comparison.&lt;br /&gt;
| The two objects being compared&lt;br /&gt;
|-&lt;br /&gt;
| __lt&lt;br /&gt;
| Less than.&lt;br /&gt;
| The two objects being compared&lt;br /&gt;
|-&lt;br /&gt;
| __le&lt;br /&gt;
| Less than or equal to.&lt;br /&gt;
| The objects being compared&lt;br /&gt;
|-&lt;br /&gt;
| __concat&lt;br /&gt;
| The objects being concatenated&lt;br /&gt;
| The two objects being concatenated&lt;br /&gt;
|-&lt;br /&gt;
| __len&lt;br /&gt;
| The # operator.&lt;br /&gt;
| The object having the operation performed on it.&lt;br /&gt;
|-&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
== Examples ==&lt;br /&gt;
{{Example&lt;br /&gt;
|desc=Use __eq to check if two tables are equal&lt;br /&gt;
|code=table1 = {x=0, y=1, z=0}&lt;br /&gt;
 table2 = {x=1, y=1, z=0}&lt;br /&gt;
 metatable = {__eq = function(operand1, operand2, type)&lt;br /&gt;
 if operand1.x == operand2.x and operand1.y == operand2.y and operand1.z then --Note: In reality you might want to first check if your these variables actually exist&lt;br /&gt;
     return true&lt;br /&gt;
 else&lt;br /&gt;
     return false&lt;br /&gt;
 end }&lt;br /&gt;
 setmetatable(table1, metatable)&lt;br /&gt;
 setmetatable(table2, metatable)&lt;br /&gt;
 if table1 == table2 then&lt;br /&gt;
     print(&amp;quot;Equal&amp;quot;)&lt;br /&gt;
 else&lt;br /&gt;
     print(&amp;quot;Not equal&amp;quot;)&lt;br /&gt;
 end&lt;br /&gt;
}}&lt;br /&gt;
== External links ==&lt;br /&gt;
* [http://www.lua.org/manual/5.1/manual.html#2.8 Lua 5.1 Reference Manual: Metatables]&lt;br /&gt;
&lt;br /&gt;
[[Category:Tutorials]]&lt;/div&gt;</summary>
		<author><name>Creator</name></author>	</entry>

	</feed>