Top "Global" questions

Refers to a space where variables and other items may be accessed from any scope.

C++ static local function vs global function

What is the utility of having static functions in a file ? How are they different from having global functions in …

c++ static global
How to get global (company) group id in Liferay?

How to get the global (company) group id in Liferay without accessing ThemeDisplay? P.S.: with ThemeDisplay it is simple: …

liferay global
How are global functions defined in Swift?

I wrote a simple function that displays an alert when it is called. I'd like to use this function in …

function swift global
WPF - Global Style?

Is there a way to setup global styles for my WPF application? What I'm hoping to do is apply a …

wpf xaml styles global
"Pythonic" way to "reset" an object's variables?

("variables" here refers to "names", I think, not completely sure about the definition pythonistas use) I have an object and …

variables python global local
Global Variable - database connection?

I am trying to connect to a database (MySQLi) just once, but am having problems doing so. How do I …

php class mysqli global connect
Global variable in laravel 4

I was wondering how to do a global variable to save me few lines of copy and pasting this lines. …

php variables laravel laravel-4 global
npm won't install packages locally. What's wrong?

I want to install packages locally, but npm is always installing packages to the global location. I'm running the following …

node.js installation global local npm
Declaring global variable with php.ini

Is it possible to keep variables in php.ini file. Like that we do with the web.config in .net. …

variables global php
Swift: Global constant naming convention?

In Swift, it seems that global constants should be camelCase. For example: let maximumNumberOfLoginAttempts = 10 Is that correct? I'm used to …

naming-conventions constants swift global