param – Talk

From Bohemia Interactive Community
Jump to navigation Jump to search
m (Text replacement - " <!-- (DIS)?CONTINUE Notes -->" to "")
m (Text replacement - "<code>" to "<code style="display: block">")
Line 6: Line 6:
<dd class="note">
<dd class="note">
Not sure there is an added value to write:
Not sure there is an added value to write:
<code>private _pos = param [0, [0,0,0], [objNull, []], [2,3]];</code><br>
<code style="display: block">private _pos = param [0, [0,0,0], [objNull, []], [2,3]];</code><br>
instead of :<br>
instead of :<br>
<code>_pos = param [0, [0,0,0], [objNull, []], [2,3]]; // private is implicit</code><br>
<code style="display: block">_pos = param [0, [0,0,0], [objNull, []], [2,3]]; // private is implicit</code><br>
</dd>
</dd>
</dl>
</dl>

Revision as of 11:53, 11 January 2023

Posted on Jan 30, 2017 - 18:55 (UTC)
Pierre MGI
Not sure there is an added value to write: private _pos = param [0, [0,0,0], [objNull, []], [2,3]];
instead of :
_pos = param [0, [0,0,0], [objNull, []], [2,3]]; // private is implicit
>// private is implicit <- No it is not. Killzone Kid (talk) 08:02, 31 January 2017 (CET)
>// No it is not. <- So? could you be so kind as to give an example which gives a different behavior, with or without private in front of param?. Pierre MGI (talk) 08:54, 31 January 2017 (CET)
_var = param [.....] <- assigns param value to _var

private _var = param [.....] <- assigns param value to _var and makes _var private
I don't know what else can I explain, this seems pretty obvious Killzone Kid (talk) 10:11, 31 January 2017 (CET)