Skip to main content

Questions tagged [reference]

A reference is a value that enables a program to indirectly access a particular datum.

0 votes
2 answers
369 views

I'm new to coding and am currently trying to learn C++ myself. I just learned about function parameters and pass by value vs pass by reference. Everywhere I read, they say that one of the reasons pass ...
Karanveer A's user avatar
2 votes
1 answer
195 views

I got a fundamental question about the $this keyword in PHP and how it is defined. Pracitcally, I know what it is and what it does. But I am interested in how it is provided / implemented? For example,...
tweekz's user avatar
  • 237
-2 votes
1 answer
376 views

I am working on a simple interface to SharePoint via Graph API. I have created a project that references Azure.Core, Azure.Identity, Microsoft.Graph, and other dependencies required to make calls via ...
Sigmundur's user avatar
  • 105
1 vote
2 answers
260 views

I know that a lot of interpreted higher level languages like to abstract a lot of things and therefore cannot directly be compared with lower level constructs. For example in some languages primitive ...
tweekz's user avatar
  • 237
4 votes
2 answers
2k views

When I started programming, I learned what Pointers are in C++. In Java, references are variables which hold the address of an object. So conceptually it's a pointer, without the ability to directly ...
tweekz's user avatar
  • 237
7 votes
1 answer
221 views

For example, which term completes the sentence "p has 5 ____" in order to describe a situation like int *****p?
vim_overlord's user avatar
11 votes
3 answers
3k views

I'm writing in C++, but this problem applies to any language without GC and even to languages with a GC as well. I have a structure in memory in which I create/add objects. The structure takes ...
Helloer's user avatar
  • 293
0 votes
1 answer
1k views

Is capture by value (x below) an early binding and capture by reference (y below) a late binding in C++ lambdas, or are they both early bindings—the first by value and the second by reference? #...
Géry Ogam's user avatar
5 votes
4 answers
2k views

What are the relationships between these pairs of concepts: value/reference type; value/reference object; value/reference semantics? For the first pair of concepts, it seems to me that an object of ...
Géry Ogam's user avatar
8 votes
3 answers
2k views

Until recently I used to think that it was preferred to reference objects by pointers or references than to keep objects in some sort of a central, authoritative array or dictionary and only keep ...
gaazkam's user avatar
  • 4,529
3 votes
1 answer
3k views

I'm trying to design an API for an object manager that registers and retrieves different related objects. When I want to retrieve an object, I can query it by its object id. I'm wondering if I should ...
Marvg's user avatar
  • 33
7 votes
3 answers
2k views

Besides the fact that all primitive types of C++ are copy assignable except the reference type, it also doesn't play well with containers or any other parts of the language where copy-assignable ...
John Z. Li's user avatar
0 votes
2 answers
403 views

I use "reference" term here like in C++ world, not like in C# (for example). I use non-C++ syntax on purpose -- this is general question, not about this particular implementation. Starting something ...
greenoldman's user avatar
  • 1,533
1 vote
1 answer
4k views

I encountered in a book some explanation how self referential tables in SQLAlchemy (Python) work, as an example, here is the class Employee with a manager_id: class Employee(Base): __tablename__ =...
MarcL's user avatar
  • 131
1 vote
1 answer
3k views

I am bit puzzled as for why this does not throw an exception - I believe the CLR does not delete the object because there is a reference to it? static void Main(string[] args) { ...
John V's user avatar
  • 4,946

15 30 50 per page