Dreadedentity – User talk

From Bohemia Interactive Community
Revision as of 09:45, 3 April 2019 by Dedmen (talk | contribs) (→‎params page: new section)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

params page

The note you left on the params page actually talks about a effect of private variables https://community.bistudio.com/wiki/private Not params itself. Params just has the side effect of creating new variables as private versions.

"Params gets around this, most likely, by creating a new, unique application-level variable under the hood, despite being of the same name."

Not "most likely". We know exactly what's happening. If you access a local variable the engine walks up all scopes and tries to find a existing varible with same name.

"private" variables just disable that check and only look in the current scope, and create a new variable if it doesn't exist yet.

Consider rewording your text or just moving it to the private page. It's not really relevant to params.