Skip to main content

Questions tagged [global]

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

global
0 votes
1 answer
49 views

Why I didnot get Multiple definition Error?

#include <stdio.h> #define MAX 5 static int data = 10; int increment(void *); int increment(void *ptr) { int *p = ptr; static int data =15; for (int loop=0; loop < MAX; loop++...
fw08's user avatar
  • 126
0 votes
0 answers
23 views

I'm getting a problem while using global styles in next js [closed]

I'm using global.css file in my project but the file size is too large so I want to split this code.I got a way to write global styles in your component css file but it is not working. by doing this ...
Shaheer Alli's user avatar
0 votes
0 answers
30 views

Global CSS cannot be imported from files other than Custom <App>

My React App works fine on my friends computer using global CSS, however, I've been having this issue since I opened on my VSCode. ⨯ ./styles/globals.css Global CSS cannot be imported from files other ...
Ligia Helena's user avatar
2 votes
1 answer
31 views

xlwings not updating global variable correctly when using threading

Here is my logic that I am trying to understand. import xlwings as xw import threading workbook = "" def function1(): t1 = threading.Thread(target=function2) t1.start() t1.join()...
Rakesh RAMANJULU's user avatar
1 vote
2 answers
36 views

Defining global lists in Stata if elements consist of several words

I need to make some operations with many Excel files with long names of the type "Saratov Region.xls" (I mean that names of these files contain one or more blank spaces). I tried to write ...
Andrei Malokostov's user avatar
-1 votes
0 answers
11 views

What is the use of Project -> Settings -> Deployments -> Globals in jBPM?

In jBPM, under the Project settings, there is a section called Deployments. Inside this section, there is a tab called "Global". Is this for defining global variables? How is it used in ...
user2338224's user avatar
-2 votes
0 answers
50 views

i want to acsess the global variables from a function body in python [duplicate]

I have a very long program and I want to implement a method to access the global variables present in the main program ( main.py ) from within a function called from a library ( file.py ). main.py : ...
Zaky202's user avatar
  • 15
0 votes
0 answers
24 views

How can i list root objects JavaScript [duplicate]

So I have several objects and classes in my script tag const Main = {} const App = {} class Game {} let state = 777 etc. I'd like to list them. I've tried Object.keys(Object.getOwnPropertyDescriptors(...
agiopnl's user avatar
  • 1,277
-1 votes
1 answer
72 views

var vs let for *globals*... what practical difference does "a property on the global object" make?

I have seen this (or similar): At the top level, let, unlike var, does not create a property on the global object. many times. My question is: what practical difference does this make ? Or, to put ...
Chris Hall's user avatar
  • 1,752
0 votes
0 answers
16 views

MSVC global variables initialization order

MSVC 2022 VERSION. If i use MFC static lib,i can use #pragma init_seg(lib) to change global variables initialization order. make my local global variables earlier than the lib. and Now I have to use ...
EsMgAl's user avatar
  • 1
0 votes
0 answers
28 views

Create one nodemailer test account and hold it in a module global

I have a nodejs application. One of the modules is for the mail transporter. I'd like to create a mail test configuration one per launch and store it (in global) so it can be reused. However, during ...
David Newcomb's user avatar
0 votes
0 answers
21 views

What to do after installing npm packages globally with sudo?

I installed a npm package globally on my Mac. I used sudo for it since I had permission issue. I know this is totally not the way to do it, but at this time I wasn't aware of it. I read a lot things ...
user avatar
1 vote
1 answer
107 views

How to use Rust OnceLock get_mut() method?

The Rust documentation has a OnceLock::get_mut method that returns a mutable reference. But the following code does not compile. What am I missing? use std::sync::OnceLock; #[derive(Clone)] struct ...
Zhou Lebo's user avatar
0 votes
0 answers
35 views

Unable to mock Webpack-defined global variables in Jest testing

I was trying to test a function using Jest where I need to mock a Webpack-defined global to test all the cases. I was unable to do so. // webpack.config.js ... new webpack.DefinePlugin({ __ENV__: `'${...
Arpit Malik's user avatar
0 votes
1 answer
15 views

Thymeleaf enums refactoring issues

I encountered difficulties while refactoring a template. I have many references to a limited number of enum values ​​in one template. (in a code snippet i indicated only a short part for clarity) <...
Pavel Mihnenkov's user avatar

15 30 50 per page
1
2 3 4 5
315