05-07-2009, 01:34 AM
|
#16 (permalink)
|
|
The Gregarious
Join Date: Feb 2009
Location: New York
Posts: 645
Thanks: 64
|
It just seems like a violation....
Let me turn this into a skit...
$var100 - "Hey $var200, what is your value....(pass by ref)".
$var200 - "I am valued at 10, so I am redirecting you to where 10 is stored in RAM".
$var100 - "Hey cool thanks man, I'm 10 too now! Not by value, but my reference..."
$var200 - "Cool..."
$var100 - "Oh, I am going to be 20 now...I don't like 10...guess what, now you have to be 20 too now!!"
$var200 - "What? That's not fair, how so? I only redirected you to 10, why do I have to be 20 also? My VALUE is 10...you don't have the rights to change me to 20...what gives?"
|
|
|
|