internals Questions

2

Solved

There is a strange behavior of lobstr::obj_addr caused by its vectorization over lists, when the list itself doesn't change the address. I just started Advanced R by Wickham (2ed) and reached the 2...
Brambling asked 16/9, 2024 at 16:19

13

Solved

There is a lot of code in one of our projects that looks like this: internal static class Extensions { public static string AddFoo(this string s) { if (s == null) { return "Foo"; } return ...
Stodder asked 15/2, 2012 at 22:7

5

The ability to customize the fetch mode was removed from L5.4 and is defaulted to PDO::FETCH_OBJ. The upgrade guide states that you can override this by using an event listener: Event::listen(Sta...
Alumna asked 28/6, 2017 at 6:35

3

Solved

Is it possible to make internal classes from my assembly visible to other assemblies? I know about the AssemblyInfo file and the [assembly: InternalsVisibleTo()] attribute, but it doesn't work in ...
Alan asked 16/1, 2013 at 8:36

9

Traditional assembler, and higher level compilers work with several memory segments, according to intended use. Hence, there is a data segment, a stack segment, a bss, and text segment. The text se...
Arsis asked 15/8, 2009 at 18:27

2

Solved

I have multiple assemblies which include unit tests for a single .NET Standard 2.0 project. To thoroughly test my project I want the internal classes to be visible to both assemblies. Here is the p...
Parados asked 19/9, 2022 at 14:41

4

Solved

I have 3 projects in my C# solution. Signatures Structures Tests Signatures have public and internal interfaces. Also, it has [assembly: InternalsVisibleTo("Structures")] [assembly: I...
Influenza asked 30/1, 2015 at 10:57

2

Solved

Basically this: function MyComponent() { let [count, setCount] = useState(1) let memo = useMyMemo(() => new MyClass) return <div onClick={update}>{count}</div> function update...
Snooperscope asked 10/8, 2019 at 10:44

1

Pushlocks are used internally by windows as synchronization primitives for some of its operations, specifically as part of the memory manager. What exactly is a pushlock? How is it different from ...
Mcallister asked 3/8, 2009 at 22:50

2

Solved

Recently I read on IsoCpp about how compiler known size of array created with new. The FAQ describes two ways of implementation, but so basically and without any internal information. I tried to fi...
Rafflesia asked 22/5, 2022 at 23:26

2

(Update: Might only happen in CPython 3.8 32-bit for Windows, so don't be surprised if you can't reproduce it in other versions. See tables in the Update section.) Both iter and reversed result in...
Cardiograph asked 31/1, 2020 at 13:56

8

Solved

One of the basic data types in R is factors. In my experience factors are basically a pain and I never use them. I always convert to characters. I feel oddly like I'm missing something. Are there...
Charmeuse asked 10/8, 2010 at 1:6

3

Solved

I would like to write a class library which creates for me a complex object but should only be exposed as little as possible. I want it to be included into other projects and there I only have one ...
From asked 15/3, 2013 at 19:47

1

Solved

Short version: If s is a string, then s = s + 'c' might modify the string in place, while t = s + 'c' can't. But how does the operation s + 'c' know which scenario it's in? Long version: t = s + 'c...
Pelotas asked 6/9, 2021 at 18:56

3

Solved

I was working on the Android library which I'm developing in Kotlin. I kept access modifier of some classes as internal. Internal classes are only visible in that library module in Kotlin. If I imp...
Publea asked 16/7, 2020 at 14:56

7

Solved

What does the Git index exactly contain, and what command can I use to view the content of the index? Thanks for all your answers. I know that the index acts as a staging area, and what is committ...
Perr asked 3/11, 2010 at 7:20

0

Updated (at bottom) I have a UMDF video driver based upon the IddCx sample. I have a command-line test (running 'As Administrator') that calls CreateFile on a video adapter device instance to get a...
Veery asked 19/4, 2021 at 15:24

1

Solved

I recently upgraded from Elasticsearch 6 to 7 and stumbled across the 10000 hits limit. Changelog, Documentation, and I also found a single blog post from a company that tried this new feature and ...
Villada asked 28/2, 2021 at 22:10

2

Solved

As written in the official docs the 128 bits of System.Decimal are filled like this: The return value is a four-element array of 32-bit signed integers. The first, second, and third elements of th...
Frazil asked 14/7, 2020 at 16:7

3

Solved

Does std::map store elements as std::pair? Iterating over map looks like this: #include <map> int main() { std::map<int, char> m; m[1] = 'A'; m[2] = 'B'; m[3] = 'C'; std::map<...
Maddox asked 11/5, 2020 at 16:12

1

Solved

If I take a simply and empty numpy array i can see it has 96 bytes of overhead, >>> sys.getsizeof( np.array([]) ) 96 What is that 96 bytes storing? Where in the C source for numpy or Py...
Haha asked 19/2, 2020 at 14:44

3

Solved

I'm making some pretty string-manipulation-intensive code in C#.NET and got curious about some Joel Spolsky articles I remembered reading a while back: http://www.joelonsoftware.com/articles/fog00...
Clingy asked 19/6, 2009 at 16:40

2

Solved

What is the meaning of ExternalRDDScan in the DAG? The whole internet doesn't have an explanation for it.
Mention asked 1/10, 2019 at 15:13

3

I've just installed android studio. For the first time when I run that after a short while (after showing a loading bar), It shows me this error. So I searched in Internet and I did Everything I co...
Goodrum asked 7/7, 2015 at 9:24

7

Solved

I keep wondering how does a debugger work? Particulary the one that can be 'attached' to already running executable. I understand that compiler translates code to machine language, but then how doe...
Guyer asked 19/10, 2008 at 19:20

© 2022 - 2025 — McMap. All rights reserved.