Top "Scope" questions

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

What is the difference between "File scope" and "program scope"

A variable declared globally is said to having program scope A variable declared globally with static keyword is said to …

c scope storage-class-specifier
scope of using declaration within a namespace

Is it safe (and correct) in a C++ header file to use the using declaration within a namespace as follows: #…

c++ namespaces scope using
How to list the functions/methods of a javascript object? (Is it even possible?)

This question is intentionally phrased like this question. I don't even know if this is possible, I remember vaguely hearing …

javascript methods scope member-functions
Differences between declare, typeset and local variable in Bash

When typing variables in Bash, what is the difference between declare and typeset? When used inside a function: what is …

bash shell variables scope declare
Specify scope for eval() in JavaScript?

is there any way I can execute eval() on a specific scope (but NOT global)? for example, the following code …

javascript scope eval
Having 2 variables with the same name in a class that extends another class in Java

Following is a part of my code for a project: public class Body extends Point{ public double x, y, mass; …

java class variables scope extends
JavaScript pass scope to another function

Is it possible to somehow pass the scope of a function to another? For example, function a(){ var x = 5; var …

javascript node.js closures scope serverside-javascript
Why can't I use $rootScope instead of $scope?

HTML file is this : <!DOCTYPE html> <html lang="en" ng-app="myApp"> <head> <meta …

angularjs controller scope rootscope
Can Verilog variables be given local scope to an always block?

I sometimes find it useful to use blocking assignments for "local variables" inside clocked always blocks. This can help cut …

scope verilog blocking nonblocking
Return object from PowerShell using a parameter ("By Reference" parameter)?

I have one PowerShell (2.0) script calling another. I want to receive back not only the main output, but an additional …

powershell parameters scope byref