<?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=Unit158</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=Unit158"/>
		<link rel="alternate" type="text/html" href="https://www.computercraft.info/wiki/Special:Contributions/Unit158"/>
		<updated>2026-07-11T11:14:07Z</updated>
		<subtitle>User contributions</subtitle>
		<generator>MediaWiki 1.24.1</generator>

	<entry>
		<id>https://www.computercraft.info/wiki/index.php?title=ComputerCraft_IRC&amp;diff=5384</id>
		<title>ComputerCraft IRC</title>
		<link rel="alternate" type="text/html" href="https://www.computercraft.info/wiki/index.php?title=ComputerCraft_IRC&amp;diff=5384"/>
				<updated>2013-04-19T12:46:02Z</updated>
		
		<summary type="html">&lt;p&gt;Unit158: Whoops, noticed that an admin added it to Lists, undid my last edit. Still, why did you add it to lists?&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{Stub}}&lt;br /&gt;
The ComputerCraft IRC is the official IRC. It's channel is #computercraft. If you are using an IRC client, the IP is: irc.esper.net:5555 A link to the webchat is [http://webchat.esper.net/?channels=#computercraft here.] Most development information is gained from this. The IRC is a great place to ask for help on any of your programs, talk live to other CC enthusiasts and moderators/administrators, on about ComputerCraft or anything.&lt;br /&gt;
&lt;br /&gt;
[[Category:Lists]]&lt;/div&gt;</summary>
		<author><name>Unit158</name></author>	</entry>

	<entry>
		<id>https://www.computercraft.info/wiki/index.php?title=ComputerCraft_IRC&amp;diff=5383</id>
		<title>ComputerCraft IRC</title>
		<link rel="alternate" type="text/html" href="https://www.computercraft.info/wiki/index.php?title=ComputerCraft_IRC&amp;diff=5383"/>
				<updated>2013-04-19T12:42:57Z</updated>
		
		<summary type="html">&lt;p&gt;Unit158: Removed this article from the category list. Why was it even in there in the first place?&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{Stub}}&lt;br /&gt;
The ComputerCraft IRC is the official IRC. It's channel is #computercraft. If you are using an IRC client, the IP is: irc.esper.net:5555 A link to the webchat is [http://webchat.esper.net/?channels=#computercraft here.] Most development information is gained from this. The IRC is a great place to ask for help on any of your programs, talk live to other CC enthusiasts and moderators/administrators, on about ComputerCraft or anything.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;!--[[Category:Lists]]--&amp;gt;&lt;/div&gt;</summary>
		<author><name>Unit158</name></author>	</entry>

	<entry>
		<id>https://www.computercraft.info/wiki/index.php?title=String_(type)&amp;diff=5382</id>
		<title>String (type)</title>
		<link rel="alternate" type="text/html" href="https://www.computercraft.info/wiki/index.php?title=String_(type)&amp;diff=5382"/>
				<updated>2013-04-17T13:31:55Z</updated>
		
		<summary type="html">&lt;p&gt;Unit158: Added how to form a string and two small examples&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{Stub}}&lt;br /&gt;
A String represents an array of [[char (type)|characters]]. For example, this text can be called a string. The default [http://www.lua.org/manual/5.1/manual.html#5.4 String functions in Lua 5.1], and the [[Textutils_(API)|Textutils API]], provid useful methods for manipulating strings.&lt;br /&gt;
&lt;br /&gt;
For a more in-depth and concise explanation of types, please consolidate with the [http://www.lua.org/manual/5.1/manual.html Lua 5.1 Official Manual].&lt;br /&gt;
&lt;br /&gt;
If you do not feel like viewing the Programming in Lua article, you can make a string by using quotation marks.&lt;br /&gt;
&lt;br /&gt;
== Example ==&lt;br /&gt;
&lt;br /&gt;
 string = &amp;quot;Hello&amp;quot;&lt;br /&gt;
 print(string)&lt;br /&gt;
&lt;br /&gt;
 io.read() = variable&lt;br /&gt;
 -- variable is a string&lt;br /&gt;
[[Category:Lua_Types]]&lt;/div&gt;</summary>
		<author><name>Unit158</name></author>	</entry>

	<entry>
		<id>https://www.computercraft.info/wiki/index.php?title=Coal&amp;diff=5381</id>
		<title>Coal</title>
		<link rel="alternate" type="text/html" href="https://www.computercraft.info/wiki/index.php?title=Coal&amp;diff=5381"/>
				<updated>2013-04-17T13:23:51Z</updated>
		
		<summary type="html">&lt;p&gt;Unit158: &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;/div&gt;</summary>
		<author><name>Unit158</name></author>	</entry>

	<entry>
		<id>https://www.computercraft.info/wiki/index.php?title=Coal&amp;diff=5380</id>
		<title>Coal</title>
		<link rel="alternate" type="text/html" href="https://www.computercraft.info/wiki/index.php?title=Coal&amp;diff=5380"/>
				<updated>2013-04-17T13:23:35Z</updated>
		
		<summary type="html">&lt;p&gt;Unit158: &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;/div&gt;</summary>
		<author><name>Unit158</name></author>	</entry>

	<entry>
		<id>https://www.computercraft.info/wiki/index.php?title=Coal&amp;diff=5379</id>
		<title>Coal</title>
		<link rel="alternate" type="text/html" href="https://www.computercraft.info/wiki/index.php?title=Coal&amp;diff=5379"/>
				<updated>2013-04-17T13:23:18Z</updated>
		
		<summary type="html">&lt;p&gt;Unit158: &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;/div&gt;</summary>
		<author><name>Unit158</name></author>	</entry>

	<entry>
		<id>https://www.computercraft.info/wiki/index.php?title=Coal&amp;diff=5378</id>
		<title>Coal</title>
		<link rel="alternate" type="text/html" href="https://www.computercraft.info/wiki/index.php?title=Coal&amp;diff=5378"/>
				<updated>2013-04-17T13:22:55Z</updated>
		
		<summary type="html">&lt;p&gt;Unit158: Created page. I guess it is at least worth saying that it is a fuel.&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] for more information.&lt;/div&gt;</summary>
		<author><name>Unit158</name></author>	</entry>

	<entry>
		<id>https://www.computercraft.info/wiki/index.php?title=Shell.programs&amp;diff=5377</id>
		<title>Shell.programs</title>
		<link rel="alternate" type="text/html" href="https://www.computercraft.info/wiki/index.php?title=Shell.programs&amp;diff=5377"/>
				<updated>2013-04-17T13:16:42Z</updated>
		
		<summary type="html">&lt;p&gt;Unit158: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{Stub}} &lt;br /&gt;
Shell.programs is a shell command used in the dir command in default CC.&lt;br /&gt;
&lt;br /&gt;
== Example ==&lt;br /&gt;
 function shell.programs( _bIncludeHidden )&lt;br /&gt;
    local tItems = {}&lt;br /&gt;
    -- Add programs from the path&lt;br /&gt;
    for sPath in string.gmatch(sPath, &amp;quot;[^:]+&amp;quot;) do&lt;br /&gt;
        sPath = shell.resolve( sPath )&lt;br /&gt;
        if fs.isDir( sPath ) then&lt;br /&gt;
            local tList = fs.list( sPath )&lt;br /&gt;
            for n,sFile in pairs( tList ) do&lt;br /&gt;
                if not fs.isDir( fs.combine( sPath, sFile ) ) and&lt;br /&gt;
                    (_bIncludeHidden or string.sub( sFile, 1, 1 ) ~= &amp;quot;.&amp;quot;) then&lt;br /&gt;
                    tItems[ sFile ] = true&lt;br /&gt;
                end&lt;br /&gt;
            end&lt;br /&gt;
        end&lt;br /&gt;
    end	&lt;br /&gt;
    &lt;br /&gt;
    -- Sort and return&lt;br /&gt;
    local tItemList = {}&lt;br /&gt;
    for sItem, b in pairs( tItems ) do&lt;br /&gt;
        table.insert( tItemList, sItem )&lt;br /&gt;
    end&lt;br /&gt;
    table.sort( tItemList )&lt;br /&gt;
    return tItemList&lt;br /&gt;
 end&lt;/div&gt;</summary>
		<author><name>Unit158</name></author>	</entry>

	<entry>
		<id>https://www.computercraft.info/wiki/index.php?title=Metatable&amp;diff=5376</id>
		<title>Metatable</title>
		<link rel="alternate" type="text/html" href="https://www.computercraft.info/wiki/index.php?title=Metatable&amp;diff=5376"/>
				<updated>2013-04-17T13:15:13Z</updated>
		
		<summary type="html">&lt;p&gt;Unit158: Created page with &amp;quot;{{NeedsWork|Not enough info, perhaps incorrect info}}  A metatable is an addition on to normal tables for adding metamethods, making classes as well as protecting functions.  ...&amp;quot;&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. &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 then.&lt;br /&gt;
| The two objects being compared&lt;br /&gt;
|-&lt;br /&gt;
| __le&lt;br /&gt;
| Less then or equal to.&lt;br /&gt;
| The objects being compared&lt;br /&gt;
|-&lt;br /&gt;
| __concat&lt;br /&gt;
| The objects being concat-ed &amp;lt;!-- No spell check, please fix this --&amp;gt;&lt;br /&gt;
| The two objects being concat-ed&lt;br /&gt;
|-&lt;br /&gt;
| __len&lt;br /&gt;
| The # operator.&lt;br /&gt;
| The object having the operation preformed on.&lt;br /&gt;
|-&lt;br /&gt;
|}&lt;/div&gt;</summary>
		<author><name>Unit158</name></author>	</entry>

	<entry>
		<id>https://www.computercraft.info/wiki/index.php?title=Shell.programs&amp;diff=5374</id>
		<title>Shell.programs</title>
		<link rel="alternate" type="text/html" href="https://www.computercraft.info/wiki/index.php?title=Shell.programs&amp;diff=5374"/>
				<updated>2013-04-17T09:48:14Z</updated>
		
		<summary type="html">&lt;p&gt;Unit158: Who ever just did that last edit, please make sure you are using SPACES, not TABS. Also, I do not suggest using the nowiki tags. Anyway, it is a bit easier to read now.&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{Stub}} &lt;br /&gt;
{{NeedsWork}}&lt;br /&gt;
Shell.programs is a shell command used in the dir command in default CC&lt;br /&gt;
&lt;br /&gt;
== Example ==&lt;br /&gt;
&amp;lt;code&amp;gt;&lt;br /&gt;
function shell.programs( _bIncludeHidden ) &amp;lt;br/&amp;gt;&lt;br /&gt;
    local tItems = {} &amp;lt;br/&amp;gt;&lt;br /&gt;
	 &lt;br /&gt;
    -- Add programs from the path &amp;lt;br/&amp;gt;&lt;br /&gt;
    for sPath in string.gmatch(sPath, &amp;quot;[^:]+&amp;quot;) do &amp;lt;br/&amp;gt;&lt;br /&gt;
        sPath = shell.resolve( sPath ) &amp;lt;br/&amp;gt;&lt;br /&gt;
        if fs.isDir( sPath ) then &amp;lt;br/&amp;gt;&lt;br /&gt;
            local tList = fs.list( sPath ) &amp;lt;br/&amp;gt;&lt;br /&gt;
            for n,sFile in pairs( tList ) do &amp;lt;br/&amp;gt;&lt;br /&gt;
                if not fs.isDir( fs.combine( sPath, sFile ) ) and &amp;lt;br/&amp;gt;&lt;br /&gt;
                    (_bIncludeHidden or string.sub( sFile, 1, 1 ) ~= &amp;quot;.&amp;quot;) then &amp;lt;br/&amp;gt;&lt;br /&gt;
                    tItems[ sFile ] = true&lt;br /&gt;
                end&lt;br /&gt;
            end&lt;br /&gt;
	end&lt;br /&gt;
    end	&lt;br /&gt;
&lt;br /&gt;
	-- Sort and return&lt;br /&gt;
    local tItemList = {}&lt;br /&gt;
    for sItem, b in pairs( tItems ) do&lt;br /&gt;
        table.insert( tItemList, sItem )&lt;br /&gt;
    end&lt;br /&gt;
    table.sort( tItemList )&lt;br /&gt;
    return tItemList&lt;br /&gt;
end&lt;br /&gt;
&amp;lt;/code&amp;gt;&lt;/div&gt;</summary>
		<author><name>Unit158</name></author>	</entry>

	<entry>
		<id>https://www.computercraft.info/wiki/index.php?title=User:Unit158&amp;diff=5365</id>
		<title>User:Unit158</title>
		<link rel="alternate" type="text/html" href="https://www.computercraft.info/wiki/index.php?title=User:Unit158&amp;diff=5365"/>
				<updated>2013-04-14T06:05:19Z</updated>
		
		<summary type="html">&lt;p&gt;Unit158: Created page with &amp;quot;Hello!  I am a coder, I know about 20 languages, sort of.  I do editing here on the wiki because I think that if people want to learn how to do stuff with computer craft, they...&amp;quot;&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;Hello!&lt;br /&gt;
&lt;br /&gt;
I am a coder, I know about 20 languages, sort of.&lt;br /&gt;
&lt;br /&gt;
I do editing here on the wiki because I think that if people want to learn how to do stuff with computer craft, they should be able to look at the wiki and find reliable tutorials and what not, with forums, you tend to get arguments and what not, on wikis, the people can just edit the page.&lt;/div&gt;</summary>
		<author><name>Unit158</name></author>	</entry>

	<entry>
		<id>https://www.computercraft.info/wiki/index.php?title=Talk:Robust_Turtle_API&amp;diff=5364</id>
		<title>Talk:Robust Turtle API</title>
		<link rel="alternate" type="text/html" href="https://www.computercraft.info/wiki/index.php?title=Talk:Robust_Turtle_API&amp;diff=5364"/>
				<updated>2013-04-14T06:03:00Z</updated>
		
		<summary type="html">&lt;p&gt;Unit158: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;== About digging ==&lt;br /&gt;
&lt;br /&gt;
You should add a timeout function so that your turtle's problem doesn't stall. If someone has a cobblestone generator for example, and they want it to dig only 128 at a time, your program is going to be frozen. [[User:Unit158|-Unit]] 10:03, 14 April 2013 (MSK)&lt;/div&gt;</summary>
		<author><name>Unit158</name></author>	</entry>

	<entry>
		<id>https://www.computercraft.info/wiki/index.php?title=Talk:Robust_Turtle_API&amp;diff=5363</id>
		<title>Talk:Robust Turtle API</title>
		<link rel="alternate" type="text/html" href="https://www.computercraft.info/wiki/index.php?title=Talk:Robust_Turtle_API&amp;diff=5363"/>
				<updated>2013-04-14T06:02:46Z</updated>
		
		<summary type="html">&lt;p&gt;Unit158: About digging&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;== About digging ==&lt;br /&gt;
&lt;br /&gt;
You should add a timeout function so that your turtle's problem doesn't stall. If someone has a cobblestone generator for example, and they want it to dig only 128 at a time, your program is going to be frozen.&lt;/div&gt;</summary>
		<author><name>Unit158</name></author>	</entry>

	</feed>