This is a read-only snapshot of the ComputerCraft forums, taken in April 2020.
blipman17's profile picture

local arguments

Started by blipman17, 09 April 2014 - 03:05 PM
blipman17 #1
Posted 09 April 2014 - 05:05 PM
just a question, because I have no imagination in names in variables.

are arguments stated in functions. (so between the brackets.) local when you define a function?
so in the function


function foo(a)
	--do stuff
end

is a a local variable in the scope of foo()?
Edited on 09 April 2014 - 03:05 PM
CometWolf #2
Posted 09 April 2014 - 05:11 PM
Yes.
blipman17 #3
Posted 09 April 2014 - 05:17 PM
thanx wolf