|
| 06 Feb 2012 10:59 PM |
Which one is which?
function Stuff(AP) --AP is a argument? return AP end print(Stuff("Hello")) --"Hello" is a parameter? |
|
|
| Report Abuse |
|
|
|
| 06 Feb 2012 11:01 PM |
| AFF, is this correct? I think you're the one who told me these, I've just forgotten where the Parameter is, and where the Argument is.. |
|
|
| Report Abuse |
|
|
|
| 06 Feb 2012 11:07 PM |
Oh are these backwards?
http://wiki.roblox.com/index.php/Arguments_and_Parameters |
|
|
| Report Abuse |
|
|
|
| 06 Feb 2012 11:29 PM |
function Stuff(AP) --Paramater return AP end print(Stuff("Hello")) --Argument
Paramaters are the values added with the function definition ( function foo(param1, param2, param3, param4) --values inside of () are paramaters print(param1..param2..param3..param4) end )
Arguments are the values that are added to the function call ( foo("These ", "are ", "all ", aguments") ) |
|
|
| Report Abuse |
|
|
| |
|