Jump to content




local arguments


  • You cannot reply to this topic
2 replies to this topic

#1 blipman17

  • Members
  • 92 posts

Posted 09 April 2014 - 04: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 by blipman17, 09 April 2014 - 04:05 PM.


#2 CometWolf

  • Members
  • 1,283 posts

Posted 09 April 2014 - 04:11 PM

Yes.

#3 blipman17

  • Members
  • 92 posts

Posted 09 April 2014 - 04:17 PM

thanx wolf





1 user(s) are reading this topic

0 members, 1 guests, 0 anonymous users