Top "Scope" questions

Scope is an enclosing context where values and expressions are associated.

Access variable from other workspace in Matlab?

Is there something similar to assignin() to fetch a variable which exists in another workspace and get it to the …

function matlab scope workspace
How can I resolve this case of "Useless use of a variable in a void context"?

How can I resolve this case of "Useless use of a variable in a void context"? For example: my $err = $…

string perl scope warnings void
What is the difference between variable_scope and name_scope?

What is the difference between variable_scope and name_scope? The variable scope tutorial talks about variable_scope implicitly opening …

python scope tensorflow
Is window really global in Javascript?

Take this piece of Javascript in a browser: <script> console.log(window.someThing); var x = 12; function foo() { window.…

javascript scope closures theory
JSF application scope instantiation and injection

Probably my question is a trivial one, but I never used an application scope bean before. I need the application …

jsf scope code-injection instantiation
Accessing class variables from a list comprehension in the class definition

How do you access other class variables from a list comprehension within the class definition? The following works in Python 2 …

python python-3.x scope list-comprehension python-internals
Argument Error: The scope body needs to be callable

I'm working through the 'Ruby On Rails 3 Essential Training' and have received a problem when using name scopes. When finding …

ruby-on-rails ruby-on-rails-3 scope argument-error
How can I access local variables from inside a C++11 anonymous function?

I'm doing a simple normalization on a vector (weights), trying to make use of STL algorithms to make the code …

c++ lambda c++11 scope anonymous-function
Are `typedef` and `struct` inside of a function standard in C?

I used some code like this: void A() { typedef struct B B; struct B { }; B b; }; typedef and struct definition …

c function scope typedef standards