reference Questions

6

Currently I am using 2 references in my C# project: using Czm.Perimetry.Analysis.Core; using Czm.Perimetry.Analysis.IO; And when I look at my project in Visual Studio no errors come up. However...
Hulda asked 17/10, 2019 at 17:15

11

Solved

I'm getting the following error: error CS1704: An assembly with the same simple name 'Interop.xxx.dll, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null has already been imported. Try remo...
Osyth asked 1/7, 2010 at 18:31

4

Solved

I recently read the following in Kyle Simpson's You Don't Know JS: ES6 "[ES6 modules export] actual bindings (almost like pointers) to the identifiers in your inner module definition." My confusi...
Gemoets asked 31/8, 2016 at 22:6

10

Solved

After I add 2 libraries from Nuget to my project I receive follow error: Error Payload contains two or more files with the same destination path 'System.Diagnostics.Tools.dll'. Source files: C:\U...
Md asked 26/7, 2016 at 15:18

1

Detected package version outside of dependency constraint: Microsoft.NET.Sdk.Functions 1.0.13 requires Newtonsoft.Json (= 9.0.1) but version Newtonsoft.Json 10.0.1 was resolved. I am in need of u...
Albertson asked 4/6, 2018 at 10:28

6

Is there a way to "convert" a reference to pointer in c++? In example below, func2 has already defined prototype and I can't change it, but func is my API, and I'd like to either pass both paramete...
Photoemission asked 26/9, 2013 at 15:31

4

Solved

difference between hash code and reference or address of an object?
Israelisraeli asked 13/9, 2010 at 13:0

3

I am trying to do something pretty simple here, and I've been stuck on it for several hours. I feel like I've exhausted almost every option. All I am trying to do is: JsonConvert.SerializeObject(mo...
Impartible asked 9/5, 2017 at 16:45

3

Solved

I have a singly-linked-list, L, and create a pointer to this list P. It seems like sometimes modifying P changes the actual list, while other times modifying P does nothing to the actual list L and...
Furfur asked 8/11, 2019 at 1:53

3

Solved

In most languages (like c++) passing arrays result in implicitly passing it by a reference, so any changes to the passed array in the function will result in changing the original one. I am learnin...
Matthia asked 9/11, 2016 at 19:27

41

Solved

I wrote this class for testing: class PassByReference: def __init__(self): self.variable = 'Original' self.change(self.variable) print(self.variable) def change(self, var): var = 'Changed' ...
Mokas asked 12/6, 2009 at 10:23

2

Solved

I am learning about constexpr variables using the books listed here. In particular I read in C++ Primer that: Variables declared constexpr are implicitly const and must be initialized with constan...
Whitherward asked 15/10, 2022 at 15:12

1

Solved

In the MSVC STL, the implementation of std::apply is as follows: template <class _Callable, _Tuple_like _Tuple, size_t... _Indices> constexpr decltype(auto) _Apply_impl(_Callable&& _O...
Encompass asked 15/12, 2023 at 7:22

3

Solved

In these days I have been playing with Java reflection and .class format. I'm currently studying ldc instruction. In JVM Specification I found term I don't understand: symbolic reference, and I h...
Calais asked 1/7, 2013 at 13:53

3

Solved

I was reading the docs for Rust's Deref trait: pub trait Deref { type Target: ?Sized; fn deref(&self) -> &Self::Target; } The type signature for the deref function seems counter-int...
Masochism asked 25/7, 2015 at 8:52

5

Solved

A few times, I've run into the scenario where an accessor method is needed for both mutable and immutable references. For ~3 lines it isn't a problem to duplicate the logic, but when the logic get...
Alembic asked 3/1, 2017 at 4:40

8

Solved

I'm trying to compile a program (called es3), but, when I write from terminal: gcc es3.c -o es3 it appears this message: /usr/lib/gcc/i686-linux-gnu/4.4.5/../../../../lib/crt1.o: In function `_s...
Scenic asked 1/11, 2011 at 10:56

1

Solved

I have learned that evaluating an uninitialized variable is undefined behavior. In particular, int i = i; is undefined behavior. I have read What's the behavior of an uninitialized variable use...
Wendalyn asked 9/11, 2023 at 17:13

3

Solved

Today I ran into roughly the following code: #include <iostream> void f(float&& f) { std::cout << f << "f "; } void f(int&& i) { std::cout <&lt...

5

I am a unskilled programmer and new to linux, I run into a problem when complining. I have two files 'ex_addinst.c' and 'lindo.h' in the same folder, I input command : g++ -c ex_addinst.c then, ...
Pituitary asked 15/9, 2011 at 16:8

7

Solved

I have preferences where you can enable/disable what items will show up on the menu. There are 17 items. I made a string array in values/arrays.xml with titles for each of these 17 items. I have p...
Cacodemon asked 12/11, 2010 at 3:0

2

Solved

How can I assign a reference variable based on an if statement? For example, the following example doesn't work because "smaller" doesn't have scope outside of the if-statement. int x = 1...
Overcautious asked 3/2, 2019 at 13:18

62

Solved

I am trying to run some unit tests in a C# Windows Forms application (Visual Studio 2005), and I get the following error: System.IO.FileLoadException: Could not load file or assembly 'Utility, Ver...
Donkey asked 18/10, 2008 at 13:16

1

Solved

I have a function that takes a reference to a T*: void f(T *&t);. When I call it with a conditional expression with a throw, f(t == nullptr ? throw "nullptr" : t), the program f...
Cutch asked 10/10, 2023 at 21:28

4

Solved

I am trying to understand how to assign by "reference" to a class field in C#. I have the following example to consider: public class X { public X() { string example = "X"...
Croesus asked 5/6, 2010 at 13:11

© 2022 - 2024 — McMap. All rights reserved.