Dreadedentity – User talk

From Bohemia Interactive Community
Jump to navigation Jump to search
(Add redirection)
Tag: New redirect
 
(7 intermediate revisions by 3 users not shown)
Line 1: Line 1:
== params page ==
#REDIRECT [[User talk:DreadedEntity]]
 
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|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.
 
Just noticed. The params command description already says "Parses input argument into array of private variables." So your note is kinda redundant information

Latest revision as of 12:27, 5 April 2022