All the functions that computercraft use
Started by FuuuAInfiniteLoop(F.A.I.L), Jan 25 2013 08:42 AM
12 replies to this topic
#1
Posted 25 January 2013 - 08:42 AM
as the title says i need a list of all the apis and functions that are included in computercraft, im making a project and i need that list
#2
Posted 25 January 2013 - 08:49 AM
Why? The documentation is pretty good, so why on earth would you need this list?
#4
Posted 25 January 2013 - 08:55 AM
all the apis in computercraft AND lua
#5
Posted 25 January 2013 - 08:56 AM
ikke009, on 25 January 2013 - 08:51 AM, said:
That does cover the things ComputerCraft adds, but the wiki doesn't generally duplicate documentation for the normal Lua functions, so it is not exhaustive.
urielsalis, on 25 January 2013 - 08:55 AM, said:
all the apis in computercraft AND lua
I don't think anyone has put a comprehensive list like that together, mostly because it's unnecessary. Why don't you go ahead and assemble it?
#6
Posted 25 January 2013 - 09:02 AM
local function tList(t,path) for k,v in pairs(t) do if type(v)=="table" and v~=_G then tList(v,(path or "").."->"..k) elseif type(v)=="function" then print((path or "").."->"..k) end end end tList(_G)
that will give you a list of all functions that are global
EDIT: please note that if there are any global, recursive tables it will crash... I can make a way around that easily but will only do so if you need it
Edited by KaoS, 25 January 2013 - 09:11 AM.
#7
Posted 25 January 2013 - 09:18 AM
thanks, Working on one of the biggest projects on computercraft
#8
Posted 25 January 2013 - 10:06 AM
I think calling it one of the biggest is a bit optimistic.
#10
Posted 25 January 2013 - 10:16 AM
He managed to make me curious though..
#11
Posted 25 January 2013 - 03:38 PM
it dowsnt matter project cancelled, MP if you want to know what the project was
EDIT: due to technical difficulties on how lua works
EDIT: due to technical difficulties on how lua works
#12
Posted 26 January 2013 - 03:42 AM
What was it?
#13
Posted 26 January 2013 - 11:48 AM
Was it bigger than that universe simulator someone proposed a while back? Which also was scrapped due to the limitations of Lua?
I'm not saying that dreaming big isn't a good thing. Just that you need to be careful not to appear as someone who doesn't believe that other people are also dreaming big dreams.
I dreamed of writing a program that would save the world. But it proved more difficult and less lucrative than siding with those planning to destroy it. So I know how it feels, to give up on a big dream. Don't let it get you down, at least not all the time (I have wistful moments myself, from time to time).
I'm not saying that dreaming big isn't a good thing. Just that you need to be careful not to appear as someone who doesn't believe that other people are also dreaming big dreams.
I dreamed of writing a program that would save the world. But it proved more difficult and less lucrative than siding with those planning to destroy it. So I know how it feels, to give up on a big dream. Don't let it get you down, at least not all the time (I have wistful moments myself, from time to time).
2 user(s) are reading this topic
0 members, 2 guests, 0 anonymous users











