Facebook Twitter YouTube Frictional Games | Forum | Privacy Policy | Dev Blog | Dev Wiki | Support | Gametee


Thread Rating:
  • 5 Vote(s) - 2.8 Average
  • 1
  • 2
  • 3
  • 4
  • 5
The meaning of Parameters
Adrianis Offline
Senior Member

Posts: 620
Threads: 6
Joined: Feb 2012
Reputation: 27
#12
RE: The meaning of Syntaxes

Since its been bumped, I know YC already pointed this out but perhaps not clearly enough - this is not the meaning of Syntax. This is useful information to be sure, beecake. Thanks. But to anyone that is interested in programming - Syntax is as YC put it, the rules of the language. What you describe here is what is known as 'Parameters'.

For example, AngelScript is based on the C++ 'syntax', meaning its use of certain keywords (like variable declarations int, float, string or function declarations like void, int, string etc), the way you assign or compare values (like '=', '==', '&&' etc) or the way you type strings (e.g. badstring, "goodstring") are very similar if not in most cases, the same.

In contrast, parameters are where you have things like
void Function(string &in ThisIsAParameter)

The reason it is referred to as the 'callback syntax' on the wiki is because typing in the correct parameters (like 'void Timer(string &in asTimer)') is a syntax issue - get it wrong and you have used the incorrect syntax because you wrote the parameters wrong, like 'void Timer(int asTimer)'.
Another example of a syntax issue related to this would be AddTimer(ThisStringDoesntHaveQuotationMarks!, 1, "ThisStringIsMissingAQuotationMark!);
because you did not write the language correctly, its like a spelling/grammer mistake, you need " surrounding a string


For anyone who frankly doesn't give a crap about programming except as much as they need to script their maps, please disregard all of the above and enjoy the information beecake has very kindly provided Smile (note: correct use of smiley conforms to beecake's forum syntax, as set out above)
(This post was last modified: 11-27-2012, 06:25 PM by Adrianis.)
11-27-2012, 06:22 PM
Find


Messages In This Thread
The meaning of Parameters - by FlawlessHappiness - 09-16-2012, 03:44 PM
RE: The meaning of Syntaxes - by Your Computer - 09-16-2012, 04:32 PM
RE: The meaning of Syntaxes - by nemesis567 - 09-16-2012, 05:01 PM
RE: The meaning of Syntaxes - by Melvin - 09-16-2012, 05:30 PM
RE: The meaning of Syntaxes - by nemesis567 - 09-16-2012, 07:33 PM
RE: The meaning of Syntaxes - by The chaser - 11-26-2012, 06:00 PM
RE: The meaning of Syntaxes - by nemesis567 - 09-17-2012, 12:41 AM
RE: The meaning of Syntaxes - by Adrianis - 11-27-2012, 06:22 PM
RE: The meaning of Parameters - by Adrianis - 12-02-2012, 03:21 PM



Users browsing this thread: 1 Guest(s)