tagged [pass-by-reference]
Question on Call-By-Reference?
Question on Call-By-Reference? main() calls Call_By_Test() function with argument parameter First Node. I have freed the First Node in Call_By_Test() but First node address not freed in main(), why ?....
- Modified
- 15 Feb at 13:51
C# Pass a property by reference
C# Pass a property by reference Is there anyway to pass the property of an Object by reference? I know I can pass the whole object but I want to specify a property of the object to set and check it's ...
- Modified
- 3 Mar at 22:7
Is Ruby pass by reference or by value?
Is Ruby pass by reference or by value? ``` @user.update_languages(params[:language][:language1], params[:language][:language2], params[:language][:language3]) lang_errors = @us...
- Modified
- 6 Jun at 07:18
List passed by ref - help me explain this behaviour
List passed by ref - help me explain this behaviour Take a look at the following program: ``` class Test { List myList = new List(); public void TestMethod() { myList.Add(100); myList.Ad...
- Modified
- 3 Sep at 05:28
How does the C# garbage collector find objects whose only reference is an interior pointer?
How does the C# garbage collector find objects whose only reference is an interior pointer? In C#, `ref` and `out` params are, as far as I know, passed by passing only the raw address of the relevant ...
- Modified
- 21 Nov at 17:34
How to do the equivalent of pass by reference for primitives in Java
How to do the equivalent of pass by reference for primitives in Java This Java code: ``` public class XYZ { public static void main(){ int toyNumber = 5; XYZ temp = new XYZ(); temp.p...
- Modified
- 23 May at 11:54
C# pass by value vs. pass by reference
C# pass by value vs. pass by reference Consider the following code It is universally acknowledged (in C# at least) that when you pass by reference, the method contains a reference to the object being ...
- Modified
- 12 Oct at 13:58
Passing objects and a list of objects by reference in C#
Passing objects and a list of objects by reference in C# I have a delegate that modifies an object. I pass an object to the delegate from a calling method, however the calling method does not pick up ...
- Modified
- 8 Feb at 16:2
C# 4.0 'dynamic' doesn't set ref/out arguments
C# 4.0 'dynamic' doesn't set ref/out arguments I'm experimenting with `DynamicObject`. One of the things I try to do is setting the values of `ref`/`out` arguments, as shown in the code below. However...
- Modified
- 8 Sep at 22:0
C# 7 ref return for reference types
C# 7 ref return for reference types I'm going through some code that uses the new features of C# 7 and uses the ref locals & returns feature. It seems pretty straight forward for `value-types` where t...
- Modified
- 5 Feb at 07:51
C# parameters by reference and .net garbage collection
C# parameters by reference and .net garbage collection I have been trying to figure out the intricacies of the .NET garbage collection system and I have a question related to C# reference parameters. ...
- Modified
- 23 Mar at 14:55