Page 1 of 1

Arguments and Parameters - the same thing!

PostPosted: Mon May 19, 2008 2:17 pm
by Chromegloss55
I just thought I'd mention this because when I started scripting all those years ago, this one really confused me:

If you have a function such as this:

Code: Select all
Function NameOfFunction (Argument 1, Argument 2, Argument 3)


When you PASS the information to the function, they are called PARAMETERS. So to call a function you type:

Code: Select all
NameOfFunction (Parameter 1, Parameter 2, Parameter 3)


When the function RECEIVES the information, for some strange reason, they are now magically called ARGUMENTS.

Just thought I'd note it here as it really confuses people...

(I personally think it's pretty stupid, but what can ya do?)
_________________
recipes forums