Frictional Games Forum (read-only)
The meaning of Parameters - Printable Version

+- Frictional Games Forum (read-only) (https://www.frictionalgames.com/forum)
+-- Forum: Amnesia: The Dark Descent (https://www.frictionalgames.com/forum/forum-6.html)
+--- Forum: Custom Stories, TCs & Mods - Development (https://www.frictionalgames.com/forum/forum-38.html)
+---- Forum: Development Articles (https://www.frictionalgames.com/forum/forum-40.html)
+---- Thread: The meaning of Parameters (/thread-18368.html)

Pages: 1 2


RE: The meaning of Syntaxes - FlawlessHappiness - 11-27-2012

I'm used to smileys Smile
In a text message without smileys, it's hard to define in which way the message is supposed to be understood... That's how i feel it Wink

And to me it's like this:

: ) = "I'm friendly. Not angry in any way"
; ) = "You know right?"
: P = "I'm joking / It was a joke / Mehe / If you know what i mean..."
: D = "I find this funny / Yay"
: ( = "This is not making me happy / This makes me unhappy"
:' ( = "I'm sad"
D: = "I don't know what to do!"

But of course it's all about the situation


RE: The meaning of Syntaxes - Adrianis - 11-27-2012

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)


RE: The meaning of Syntaxes - CorinthianMerchant - 11-27-2012

YES YES THANK YOU THANK YOU!!!


RE: The meaning of Syntaxes - FlawlessHappiness - 12-01-2012

Thanks! Smile I will rename the title now Wink


RE: The meaning of Parameters - Adrianis - 12-02-2012

Awesome, nice work beecake