closer changed the topic of #ruby-core to: check the latest release candidate for 1.9.1 release ftp.ruby-lang.org:/home/yugui/ruby-1.9.1-r26021+1.tar.bz2
hsbt_away is now known as hsbt
nagachika has joined #ruby-core
nagachika has quit [Remote host closed the connection]
nagachika has joined #ruby-core
Aethenelle has joined #ruby-core
nagachika has quit [Ping timeout: 260 seconds]
hsbt is now known as hsbt_away
hsbt_away is now known as hsbt
rafaelfranca has joined #ruby-core
charliesome has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<zzak>
[68.114.96.82 - http://webchat.freenode.net, irc.freenode.net] I believe wrkrcoop is trying to describe a scenario where two defined variables point to the same memory location ( dont know if ruby has such a construct though )
<zzak>
[68.114.96.82 - http://webchat.freenode.net, irc.freenode.net] such that changes to the first variable impact the second variable
<zzak>
[Ellis Marte, irc.freenode.net] jhass: yeah what joenuts said
<zzak>
[Jonne Haß, irc.freenode.net] yes, there's no pointer indirection or anything
<zzak>
[Jonne Haß, irc.freenode.net] assignment copies the reference
<zzak>
[68.114.96.82 - http://webchat.freenode.net, irc.freenode.net] meh, to me if you're coping the value ( whether by reference or not ), the new variable is still a *copy* and not a pointer
<zzak>
[Oskar Falkenbaum, irc.freenode.net] no its not... if its an array and you add an object both references will show the same added object
<zzak>
[68.114.96.82 - http://webchat.freenode.net, irc.freenode.net] so *some* variable declarations are done by reference, and some are done by copying the value, that's easy enough to understand
<zzak>
[Oskar Falkenbaum, irc.freenode.net] its always a reference.. some types are immutable, so you can't do the same as with the array
<zzak>
[68.114.96.82 - http://webchat.freenode.net, irc.freenode.net] ah, so if i understand what you're saying, is that a = 1, b = a, at that point, b is a reference to a, but once a changes, a points to something new, b points to the old value of a ?