This is done because JavaScript will "hoist" variables to the top when code is executed (Listing 2), and because forgetting to use var sometimes produces undesired results, such as overwriting a global variable with the same name.
Esto se hace debido a que JavaScript "eleva" las variables hacia la cima cuando se ejecuta el código (Lista 2) y debido a que a veces utilizar var produce resultados indeseables como sobrescribir una variable con el mismo nombre.
If you specify a value, or if there is a non-secret environment variable with the same name, the build is rejected.
If an environment variable with the same name as one of the categories above exists and is non-null, its value is used for that category.
Si existe una variable de entorno con el mismo nombre que una de las categorías, y su valor es no nulo, se usa ese valor para dicha categoría.
Within the body of a function, a local variable takes precedence over a global variable with the same name
Dentro del cuerpo de una función, una variable local tiene prioridad sobre una variable global con el mismo nombre
The control-variable is always local to the do and thus any variable may be used without affecting the value of a variable with the same name outside of the do. The control-variable is unbound after the do terminates.
Sin embargo, la función return puede usarse dentro del cuerpo para siempre local respecto de do, por lo que se puede utilizar cualquier nombre de variable sin afectar el valor de cualquier otra variable externa a do y que tenga el mismo nombre.
Local variables with the same name If you create a local variable with the same name, it will overshadow a global variable
También puede suceder que en un mismo ámbito aparezcan variables locales y globales con el mismo nombre.
If you want to access some of those properties in a shader program, you need to declare a Cg/HLSL variable with the same name and a matching type.
Si usted quiere tener acceso a algunas de esas propiedades en un shader program, usted necesitará declarar una variable Cg/HLSL con el mismo nombre y tipo de correspondencia.
Conținut posibil inadecvat
Exemplele au rolul de a te ajuta să traduci cuvinte sau expresii corect si adaptat la context. Nu sunt selectate sau validate manual, așadar pot conține termeni inadecvați. Te rugăm să raportezi exemplele pe care le consideri inadecvate. Traducerile vulgare sau colocviale sunt în general marcate cu roșu sau cu portocaliu.