Talk:Comparison of Java and C++: Difference between revisions

Content deleted Content added
Java pass by value: please remind yourself of WP:CONSENSUS
Line 547:
:::Each argument '''value''' is assigned to its corresponding parameter variable. This is [[pass-by-value]]. -- [[User:Schapel|Schapel]] ([[User talk:Schapel|talk]]) 12:35, 10 December 2010 (UTC)
::::I don't know what you're trying to prove here, but we can't have mistruths in the article just to please you. You quoted books that said, "''object references are passed by value''" (your favourite phrase from above) and "A method call can pass [...] copies of references to objects". At the same time you added to the article, "reference types in Java [are] passed by value". That is not the same thing. Please don't write any more code or lengthy explanations to justify it. Just accept that they are not the same thing. I'll go with that silly phrase, used by both you and your book, "references are passed by value" (without asking again how else a reference would possibly be passed) if you will please leave that part of the article alone in this compromise state. For future reference, please remind yourself of [[WP:CONSENSUS]], which is policy here. --[[User:Nigelj|Nigelj]] ([[User talk:Nigelj|talk]]) 14:49, 10 December 2010 (UTC)
:::::I didn't add "reference types in Java are passed by value". [https://secure.wikimedia.org/wikipedia/en/w/index.php?title=Comparison_of_Java_and_C%2B%2B&diff=401522278&oldid=401492337 You added] "Class types, interface types, and array types are collectively called reference types in Java and passed by reference" which is completely wrong, and all I did was [https://secure.wikimedia.org/wikipedia/en/w/index.php?title=Comparison_of_Java_and_C%2B%2B&diff=401526878&oldid=401522278 change] "passed by reference" to "pass by value" which is correct. If you prefer the wording "object references are passed by value" that is also correct. As you say yourself, we can't have mistruths in the article just to please you -- all I did was correct your error. After that, I added two citations that allow any reader to verify that Java passes references by value. In any case, it looks like we've already reached a consensus. We can discuss the matter further if anyone still has any concerns, but I think it's best for me to simply point to other people's explanations. Others explain in a variety of different ways, including using diagrams to clearly indicate what's going on, and many are professional authors and instructors. -- [[User:Schapel|Schapel]] ([[User talk:Schapel|talk]]) 15:50, 10 December 2010 (UTC)
 
== "neutrality" is counter to the point ==