I was wondering how to use the self function / whateveritis, and tried to make a function to save a table.
tbl = {
save = function( self, path ) -- i know i could just call "self" for tbl or something instead, but i want to learn how this "self" works
-- body
local fileHandle = fs.open( path, "w" )
fileHandle.write(textutils.serialize(self:tbl))
fileHandle.close()
end
}
I have no idea if this is going to work... (probably not)
And if you have the time for it, could you explain / give me a link to a tutorial on how to use this?
Thanks in Advance
Edited by Mikk809h, 23 March 2014 - 09:33 PM.











