3 ms·
> sometimes you have to read and comprehend If you don't understand how you're being insulting here, I can't help you. > The JLS does define exactly what happ
by nknighthb 12y ago
> sometimes you have to read and comprehend
If you don't understand how you're being insulting here, I can't help you.
> The JLS does define exactly what happens when parameters are passed...
Yes, it's very nice in that respect.
> And that happens to match the definition of pass-by-value/call-by-value exactly (even Java is listed as an example language for pass-by-value)
It happens to match the definition of "call-by-value" used by whoever wrote that blurb on Wikipedia you seem to love so much. The irony here, of course, is that people who like to use these terms don't even agree on how they're spelled...
None of this makes the terms useful.
- jjnoakes 12y agoIf you google "pass-by-value" vs "pass-by-reference" and understand what they mean, in a language-agnostic way, and you understand what Java is doing when you pass parameters, then you too will come to the same conclusion and I have, and the people who wrote the wikipedia article, and everyone else. If you like, though, feel free to provide your plethora of references and documentation that supports your claim that pass-by-reference is meaningless, and is also what Java does. > If you don't understand how you're being insulting here, I can't help you. There's no help needed. Asking someone to read and comprehend is no more insulting than pointing out where they are wrong. If being wrong insults you, then I suggest you refrain from posting misguided opinions in technical forums and standing by your incorrect position even in the face of overwhelming opposition from numerous sources. If I was being insulting, I'd link you to the proggit thread and say "look, even proggit got it after a short discussion, why are the hacker news folks taking so long to get this simple concept"... but I haven't. Instead I would like to try to correct those who are mistaken. I feel like anyone who comes and reads the incorrect statements in threads like this should be able to then read the corrections so they too don't fall into the same traps you have.
- nknighthb 12y ago> If you google "pass-by-value" vs "pass-by-reference" and understand what they mean, in a language-agnostic way, and you understand what Java is doing when you pass parameters, then you too will come to the same conclusion and I have, and the people who wrote the wikipedia article, and everyone else. What conclusion would that be, exactly? > your claim that pass-by-reference is meaningless I didn't make that claim. > and is also what Java does I didn't make that claim, either. Nor would I ever. Stop putting words in my mouth.
- jjnoakes 12y agoYou did though. You claimed the terms were meaningless. But if you study, you find out they they have very specific meanings. Calling C pointers "references" is just the tip of the misunderstanding iceberg. But if you prefer to wander around in ignorance, by all means. Just don't be surprised when your incorrect comments are constantly corrected.
- nknighthb 12y ago> You did though. You claimed the terms were meaningless. Just to be sure I didn't comment in my sleep, I went back and looked, and I see the word "meaningless" nowhere in my comments. > But if you study, you find out they they have very specific meanings. Some people have defined them in very specific ways. The description in the originally linked article is actually one of the ones I hate the least. That doesn't make it good, and doesn't make the terms useful. > Calling C pointers "references" is just the tip of the misunderstanding iceberg. What, precisely, will it take to convince you that I understand your position and simply disagree with it? > But if you prefer to wander around in ignorance Please stop being insulting.
- jjnoakes 12y ago> I'm of the long-standing and well-informed opinion that "pass-by-reference" and "pass-by-value" are worthless terms that need to die > The terms would be useful if people agreed on their meaning (they do not) and if languages actually followed one way or the other consistently (they do not). Go read some actual literature about programming languages so you can get these ignorant notions out if your head. The terms pass-by-value and pass-by-reference are well defined and have specific meanings both in the context of specific programming languages and independent of any specific programming language. Pass by value means the value of the caller expression is logically copied in to the parameters, and direct mutations to the parameter itself are not reflected back to the caller. Pass by reference means the opposite... The parameter is an alias for the caller's expression, and direct mutations are reflected back to the caller. C pointers are not called references, except in an informal description of how they relate to what they refer to, by any authority on the topic. I don't know if you are doing it intentionally or not but I'm done feeding your trolling. If you change your mind and want to learn anything else, my door is always open. But if you want to keep up this charade, whatever it is, go troll someone else. No one is going to read this thread this far down, so I feel no more obligation to correct your unfortunate misguided claims in the spirit of helping someone else who is actually looking for the right answer.