J
Jakob Bieling
First off, please calm down. I am not trying to pick on you. I
explained my mental model of references to you, because you obviously
have trouble coping with yours (quote: "this automatic dereferencing
when you pass by reference I find most confusing"). If you do not want
to accept this way of thinking of references, it is fine with me. I do
not get paid for convincing you.
(Sorry, I snipped the above line in my previous reply)
No you did not. See above. There you said "[..] pass arguments [..]
'by-reference' by using the '&'-operator" (which by itself is not right)
and the following example 'int& reference' just was not an address-of
operator.
It is not, because it simply will not compile. Talking about
contexts.
int i = 0;
int& j = i; // _not_ C!
My point is just to completely lay out my mental model of references
to you, without leaving out details just because someone has said them
before.
Of course, you did not. But I did.
Please read what I wrote: "Let's keep overloaded operators out of
this" .. so I obviously did not have the intention to discuss them, but
rather included this little footnote for completeness to avoid replies
in that direction beforehand.
Maybe because your wording is misleading. It is confusing that you
write in one post, 'int& r' uses the address-of operator. When I tell
you that this is not true, you claim to have known that, telling me my
answer was ridiculous. If you knew that, then I apologize. On the other
hand, you should probably re-read your own postings before you send them
and make sure you are not misusing terminology and thus creating
confusion in the first place.
Not quite. Maybe you did not read my post carefully enough. The
mental model of references I presented does not suffer any confusing
auto-dereferencing, while yours does. If you do not like this model, I
honestly do not care. I do not gain anything, but even was I investing
my time to try to help you. If you do not want that, just say so and
save your time and mine.
hth
explained my mental model of references to you, because you obviously
have trouble coping with yours (quote: "this automatic dereferencing
when you pass by reference I find most confusing"). If you do not want
to accept this way of thinking of references, it is fine with me. I do
not get paid for convincing you.
Jakob Bieling wrote:
(Sorry, I snipped the above line in my previous reply)
When you write: "No. This is not the address-of operator....
bla.bla.bla", then that's completely ridiciculous because I even
distinguished clearly between that myself in my previous explanation.
No you did not. See above. There you said "[..] pass arguments [..]
'by-reference' by using the '&'-operator" (which by itself is not right)
and the following example 'int& reference' just was not an address-of
operator.
IT IS IN C!
It is not, because it simply will not compile. Talking about
contexts.
int i = 0;
int& j = i; // _not_ C!
That exactly corresponds to what I wrote. So what's your point? Why
the hell are you just repeating my explanation, in your own words?
My point is just to completely lay out my mental model of references
to you, without leaving out details just because someone has said them
before.
I never wrote that!
Of course, you did not. But I did.
That exactly corresponds to what I wrote. So what's your point? Why
the hell are you just repeating my explanation, in your own words?[*] Let's keep overloaded operators out of this .. simplifies my
wording
Let me be very clear here: There's *absolutely* no reason to discuss
overloaded operators here.
Please read what I wrote: "Let's keep overloaded operators out of
this" .. so I obviously did not have the intention to discuss them, but
rather included this little footnote for completeness to avoid replies
in that direction beforehand.
See above.[..] "&reference" isn't the
variable itself - it's the *address* of that variable.
What I don't understand is why the h** you seem to disagree with me
and yet you're just repeating my whole explanation in your own words?
Maybe because your wording is misleading. It is confusing that you
write in one post, 'int& r' uses the address-of operator. When I tell
you that this is not true, you claim to have known that, telling me my
answer was ridiculous. If you knew that, then I apologize. On the other
hand, you should probably re-read your own postings before you send them
and make sure you are not misusing terminology and thus creating
confusion in the first place.
If I should cut everything down of what you wrote, then you completely
agree with me because it's just garbage you're writing about in this
post...
Not quite. Maybe you did not read my post carefully enough. The
mental model of references I presented does not suffer any confusing
auto-dereferencing, while yours does. If you do not like this model, I
honestly do not care. I do not gain anything, but even was I investing
my time to try to help you. If you do not want that, just say so and
save your time and mine.
hth