Skip to main content
Filter by
Sorted by
Tagged with
0 votes
0 answers
41 views

After trying Lavi Kumar's example it seems the package import pdbext.debug in ~/.pdbrc goes out of scope when another source file is called. ~/.pdbrc: !import pdbext.debug alias pl !pdbext.debug....
CharlieB's user avatar
0 votes
1 answer
65 views

I disable I/O checking inside a procedure: procedure RewriteText( FileName: string; var TextFile: text; var ErrMsg: string ); begin {$I-} assign(TextFile, FileName); rewrite(...
Bogdan Doroschenko's user avatar
7 votes
6 answers
2k views

I have some code in which an array of strings is defined in a conditional statement. The array is out of scope where I need it. So I defined another pointer in the outer scope. In the conditional ...
Johannes Linkels's user avatar
2 votes
2 answers
103 views

I am a beginner in C# trying to figure out how ref-safe-context is defined in C#. I declared a function Foo which didn't work since it tries to ref assign a variable with declaration-block to a ref ...
Louis Nicolas Davout's user avatar
1 vote
1 answer
86 views

I have a workflow where I download a file, do some stuff to it, upload it, and then download it again to verify that the changes took place. I want my download logic to be in a reusable YAML file that ...
The Lemon's user avatar
  • 1,467
-3 votes
1 answer
68 views

What is being customized When creating a color scheme for Sublime Text, to find the scope that defines the color for a portion of code, we can press Cmd Opt P (Mac) or Shift Ctrl Alt P (Win), to bring ...
Mentalist's user avatar
  • 1,743
3 votes
3 answers
121 views

I am trying to dynamically add buttons to a list, and have $Button (or another variable) be set to whatever is clicked (No OK/Cancel button needed). The below code creates the buttons, and resizes the ...
user66001's user avatar
  • 950
-1 votes
1 answer
154 views

variables $relativePath and $x lose their values in the function $createdChanged, however $session retains its value. what am i missing about scope or otherwise with these variables? windows 11, ...
tthomson001's user avatar
-5 votes
1 answer
118 views

I have a kaggle notebook(link here). The notebook iterates over a list of number(candidate_max_leaf_nodes) and then gets a mae for each number by massing it as a parameter(ignore the other parameters) ...
HAK's user avatar
  • 450
3 votes
1 answer
99 views

If a have Powershell function, like function invoke-sb1 ([scriptBlock] $sb) { invoke-command -computerName abc -credential (get-cred.ps1) -scriptBlock $sb } and then invoke the function from ...
René Nyffenegger's user avatar
2 votes
1 answer
100 views

I'm working on an ECS system, but in order to iterate across pairs of queries, I need to be able to fetch components only for a limited scope when executing a system. To do this, I'm trying to make a ...
gjh33's user avatar
  • 121
1 vote
2 answers
95 views

The following snippet is from the (Brown University ver.) Rust book fn largest<T>(list: &[T]) -> &T { let mut largest = &list[0]; for item in list { if item > ...
Jason Yao's user avatar
0 votes
0 answers
56 views

Limite de débit de l’application We would like to monitor in real time the changes in the number of followers (subscribers) of a Facebook Page. Is there a Webhook field that allows receiving a ...
malek mtibaa's user avatar
0 votes
2 answers
90 views

Currently, I am considering these three methods to define a new scope. if (1) { def a = 1 } ({ def a = 1 })() any { def a = 1 } Is there anyone better? It seems the official style guide ...
relent95's user avatar
  • 5,119
0 votes
1 answer
82 views

I'm having some issues in defining styles of my items. Or actually in the scope of the styles I set. My question is how do I make sure, that a style I'm setting is not propagated for the elements of ...
Mike-Kilo's user avatar
  • 1,354
0 votes
0 answers
109 views

I have shot myself in the foot a fair number of times with declare until I started to differentiate its switches that are not all equal. Some set variable attributes, but some just affect scope. So ...
Albert Camu's user avatar
0 votes
1 answer
108 views

First I linked two JavaScript files to my HTML <script src="script.js"></script> <script src="main.js"></script> On the first file ( the "script.js&...
Emmanuel Ayomide Fatolu's user avatar
3 votes
1 answer
169 views

I'm super duper new to coding and I'm just learning this as a hobby. I'm following a course and this is the code I wrote (user input to a dynamically created array): #include <iostream> using ...
Ellon Feyneth's user avatar
1 vote
0 answers
56 views

I am trying to put together some code to find duplicated files between two or more directories, for this I am using C libs like tinydir, and plibsys, the idea is traverse dirs get the hash of every ...
anewb33's user avatar
  • 121
4 votes
3 answers
244 views

In the C17's final draft N2176 document, the 7th paragraph of 6.2.4 section says For such an object that does have a variable length array type, its lifetime extends from the declaration of the ...
Cinverse's user avatar
  • 333
4 votes
2 answers
160 views

In C17's final draft N2176, in the 1st paragraph of 6.2.1 it says member of an enumeration is called an enumeration constant. in the 7th paragraph 6.2.1 it says Each enumeration constant has scope ...
Cinverse's user avatar
  • 333
7 votes
2 answers
143 views

In C17's final draft N2176 document, at 1st paragraph of 6.2.1, it defines a label name as a type of identifier, at 3rd paragraph of 6.2.1, it says A label name is the only kind of identifier that ...
Cinverse's user avatar
  • 333
0 votes
0 answers
102 views

I have an app using SceneKit in a SwiftUI framework, and I am trying to properly organise my views by defining a separate view for the interface panel as an ZStack overlay. I have moved the buttons (...
user23510612's user avatar
3 votes
3 answers
177 views

For example, we have such code: #include <stdio.h> int main(void) { int n = 4; { n++; } printf("%d\n",n); return 0; } How does the inner block see the ...
ALICEZzz's user avatar
  • 639
1 vote
1 answer
98 views

Per Import-Module's -Scope parameter documentation: By default, when Import-Module cmdlet is called from the command prompt, script file, or scriptblock, all the commands are imported into the global ...
mmseng's user avatar
  • 959
0 votes
1 answer
57 views

//global code: GC const x=20; //BD_GC_X { //block code: BC console.log(x); //BC_X const x=10; //BD_BC_X } my understanding: binding for x at BD_GC_X is associated by Global Execution ...
sql_dummy's user avatar
  • 783
2 votes
1 answer
87 views

I used ChatGPT to generate the code to understand how to do it myself, and it mostly works. The script is to check my TV & Movie folders for missing files to make Plex work better (folder.jpg, ...
marion's user avatar
  • 23
2 votes
1 answer
149 views

Inside a script, I import a module, for example Import-Module -Name Test -Scope Local I execute the script at the command prompt test.ps1 Then, after the script finishes, I run Get-Module and the ...
Bangaio's user avatar
  • 329
1 vote
1 answer
63 views

I'm working on a game that will take a random object, and use that same random object for a series of questions/functions. I'm having trouble getting the next piece of code to run after clicking the &...
Christina Bohn's user avatar
1 vote
2 answers
431 views

I'm trying to build an app that integrates with bsky's OAuth and API. Using the below the document using the "Browser App" option. https://docs.bsky.app/docs/advanced-guides/oauth-client I'm ...
BobbyZHolmes's user avatar
-2 votes
1 answer
56 views

I'm working on a practice game that uses an array of objects (plants) that will be chosen randomly. Questions are asked about light and water requirements, winning or losing the plant and moving onto ...
Christina Bohn's user avatar
3 votes
2 answers
170 views

Where the C++ standard allows an identifier with name space of a structure (a "non-ordinary" identifier in C) in a primary expression? Consider the following code (which is a valid C++, but ...
pmor's user avatar
  • 6,757
0 votes
0 answers
69 views

I have a Flutter web and android app using google calendar api, create/edit/delete a calendar for the app's own use. I use googleapis package, and chose "calendarScope" to access google ...
Jimmy's user avatar
  • 41
0 votes
2 answers
105 views

For the person who is missing it, I am trying to add the year of death by using the reduce method for an array of objects. For example: { name: "Carly", yearOfBirth: 2018, }, { name: 'Carly'...
lunarchild's user avatar
-2 votes
1 answer
129 views

Is it possible to declare a global variable that is invisible to the importing script? For example, in script a.py I have a variable var_a that is accessible to any function in a.py. However, in ...
ysap's user avatar
  • 8,241
3 votes
2 answers
165 views

While recently trying to get one algorithm for "Getting indices of matching parentheses". I can get what that algorithm means although with some problems with perl language. The perl syntax ...
An5Drama's user avatar
  • 774
3 votes
2 answers
160 views

When shadowing i inside the for loop, the following code #include <stdio.h> int main() { for (int i = 1; i < 5; i++) { printf("%d", i); int i = i; ...
Lumin's user avatar
  • 483
12 votes
3 answers
1k views

I learned that fesetround can be used to control FP rounding rule. I wonder what is scope of the function? say, is it local to the very source file? or translation unit? how about thread? Any insight ...
Linda's user avatar
  • 319
2 votes
0 answers
62 views

I have the below min repro application which is meant to build a graph (tree) from a vec (split string). (It is meant to be part of a larger loop that would modify the graph/tree multiple times.) The ...
Rogus's user avatar
  • 1,290
2 votes
1 answer
118 views

In the [basic.scope.temp] section of the C++ standard, it is mentioned: 6.4.9 Template parameter scope Each template template-parameter introduces a template parameter scope that includes the ...
Redstone1024's user avatar
0 votes
0 answers
43 views

So I have a number of CMake files - and I am trying to refactor many common things across multiple projects. One example is we turn on features due to the compiler version (GCC) I am having problems ...
user3696153's user avatar
0 votes
3 answers
97 views

I wrote some container type which keep objects. I want to ensure that objects will be deleted if they are not longer needed. I am able to generate objects inside my class and I can access these ...
Klaus's user avatar
  • 26k
0 votes
1 answer
182 views

I'm working on a Rust project and have a trait called Auth with an asynchronous method auth_login. The issue I'm facing is that when I try to make the method accessible from other modules using pub, I ...
Fahed's user avatar
  • 205
-1 votes
1 answer
120 views

In this C# example, will the garbage collector dispose of hugeString after TestClass is instantiated? Furthermore, would uncommenting the line hugeString = null help garbage collection at all? public ...
user3163495's user avatar
  • 3,968
0 votes
0 answers
23 views

shouldn't it be able to access the object "something"? var problem = { something: {thing:23}, somethingElse: [function(){return this.something.thing}] }; console.log(...
M D's user avatar
  • 1
0 votes
1 answer
95 views

In Rust, items defined in the same module (siblings) can access each other, so we can access Config within main(). However, given that struct fields are private by default, why can they still be ...
Eason's user avatar
  • 171
0 votes
0 answers
27 views

A website I built 10+ years ago for a fishing club needs a few changes. I haven't changed the site for 5+ years and am immediately getting build errors when it compiled fine under VS 2017 - but won't ...
William Stukeley's user avatar
1 vote
0 answers
19 views

In the Rust csv module tutorial, under the Reading Headers section (about a third of the way down the page), there is a code example as follows: //tutorial-read-headers-02.rs fn run() -> Result<(...
JimmyJames's user avatar
  • 1,649
0 votes
0 answers
115 views

Here is the function in question: /** * @el [Element] Target HTML Element * @attr [String] attribute to bind * @match [Object] Result from regex.exec */ const bindValue = (el, attr, match) => { ...
hobberwickey's user avatar
  • 6,464
0 votes
0 answers
38 views

To increase visibility into my application, I'm monkey-patching certain methods on an object to add logging statements before the method call: class Foo: def bar(self, f): print(f"bar {f}&...
user avatar

1
2 3 4 5
354