Top "Scope" questions

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

Nested templates with dependent scope

What is dependent scope and what is the meaning of typename in the context of the following error? $ make g++ …

c++ templates scope nested
Accessing outside variable using anonymous function as params

Basically I use this handy function to processing db rows (close an eye on PDO and/or other stuff) function …

php closures scope
Access extern variable in C++ from another file

I have a global variable in one of the cpp files, where I am assigning a value to it. Now …

c++ scope global extern
declare global property in QML for other QML files

I want to declare a global property in a config file and use it in other files. for example declare …

qt variables scope qml global-variables
ECMAScript 2015: const in for loops

Which of the two (or neither/ both) code fragments below should be working in a complete ECMAScript 2015 implementation: for (const …

javascript for-loop scope constants ecmascript-6
array.length is zero, but the array has elements in it

I'm currently in the process practicing using electron, but I'm quite new with javascript and I've come across a problem …

javascript arrays scope electron
What are the double colons (::) in R?

I am following a tutorial in Rbloggers and found the use of double colons, I looked online, but I couldn't …

r scope namespaces operators scoping
What is the 'global' object in NodeJS

I've just seen a weird behaviour of the this keyword in NodeJS environment. I'm listing them with code. I've run …

javascript node.js scope this global
Python: Sharing global variables between modules and classes therein

I know that it's possible to share a global variable across modules in Python. However, I would like to know …

python scope global-variables module
Rails includes with scope

I have a model called Author. An author has many Articles. Articles have a scope called .published that does: where(…

ruby-on-rails activerecord scope rails-activerecord