Timeline for What are the advantages of pass by value?
Current License: CC BY-SA 3.0
6 events
when toggle format | what | by | license | comment | |
---|---|---|---|---|---|
Feb 24, 2014 at 8:15 | comment | added | Stephen C | @nimcap - Yes. If that is what you meant, then you are misusing the term. Pass-by-value is actually talking about any kind of value. | |
Feb 23, 2014 at 17:28 | comment | added | nimcap | Actually I might be misusing the terms. I used the term pass-by-value when the actual object passed to a function is copied, not the reference. | |
Feb 23, 2014 at 16:18 | comment | added | Brian | @nimcap: C# and Java use pass by value for complex objects, not just for primitives. Mind you, they pass a reference by value, but this is not at all the same thing as passing a value by reference. C# also supports structs (in which case the behavior is similar to pass by value in C++) and pass by reference (in which case the behavior is similar to pass by reference in C++). | |
Feb 23, 2014 at 15:58 | history | edited | Stephen C | CC BY-SA 3.0 |
deleted 17 characters in body
|
Feb 23, 2014 at 2:55 | comment | added | nimcap | Of course I am aware that language designers are not ignorant and it is very hard to design languages. I am sorry if I offended someone. Actually, first I wrote something like 'When I say value I don't mean primitives of course.' but I thought it is obvious, I decided to omit it for clarity in my original post. But now I will update my question accordingly. | |
Feb 23, 2014 at 2:27 | history | answered | Stephen C | CC BY-SA 3.0 |