Re: Using ref
- From: "Hilton" <nospam@xxxxxxxxxx>
- Date: Thu, 3 Jul 2008 15:55:36 -0700
Peter wrote:
We're not. There are fundamental differences in the way the parameters
are used when you have a language that actually supports passing "by
reference", as compared to a language that does not.
That said, I'm done trying to help you understand. Every time you think
you've come up with an example that illustrates why things are the same,
we point out why the example is wrong. You either ignore those points
altogether (and why not? why bother to listen to any fact that conflicts
with your own view?), or you come up with some new example that is
similarly flawed (repeating the cycle).
You obviously aren't interested in learning something new. You reject
anything that confronts your own pre-established beliefs, and frankly, I
find religious debates pointless.
At least for the time being, this thread has sufficient content to avoid
any naïve reader thinking that you actually know what you're talking
about, and that's good enough for me. As I said, I don't really care what
_you_ believe...I just don't want anyone else thinking you're right. I'm
sure that goal has been accomplished.
Just to beat a dead horse and debunk your usual "Hilton's own view" opinion,
I did a quick search and found stuff on multiple university web sites and in
books teaching/showing "pass by reference" using C - here are some links,
but "pass by reference" using C is in many many many places:
http://www.youtube.com/watch?v=Dw76YHFQjaw (note the title)
http://www.cs.princeton.edu/~lworthin/126/precepts/pass_val_ref.html - "With
pointers, we can pass the values 'by reference.' Passing by reference means
that we'll pass the addresses of the variables instead of the values."
It's silly getting all heated up about these discussions. Again, your view
(which is consistent with Jon and many others) is that it is how it looks
and works from the source code point of view - fine, I have no problem with
that. But to me (and many others), that is mostly academic, what concerns
me is what is actually happening - i.e. is the entire array or just a
pointer/reference to the array being passed.
Having said that, I understand your frustration with another point of view.
I don't like hearing the media say that a plane stalled when its engine
stopped. Although we can blame the Wright brothers for this one. :)
Hilton
.
- Follow-Ups:
- Re: Using ref
- From: raylopez99
- Re: Using ref
- From: Jon Skeet [C# MVP]
- Re: Using ref
- From: Peter Duniho
- Re: Using ref
- References:
- Using ref
- From: Arjen
- Re: Using ref
- From: Steve Harclerode
- Re: Using ref
- From: Jon Skeet [C# MVP]
- Re: Using ref
- From: Steve Harclerode
- Re: Using ref
- From: Jon Skeet [C# MVP]
- Re: Using ref
- From: Hilton
- Re: Using ref
- From: Peter Duniho
- Re: Using ref
- From: Hilton
- Re: Using ref
- From: Jon Skeet [C# MVP]
- Re: Using ref
- From: Hilton
- Re: Using ref
- From: Peter Duniho
- Re: Using ref
- From: Hilton
- Re: Using ref
- From: Peter Duniho
- Using ref
- Prev by Date: Re: Using ref
- Next by Date: WPF: Change color in a style's gradient using c#
- Previous by thread: Re: Using ref
- Next by thread: Re: Using ref
- Index(es):
Relevant Pages
|