On Mon, Dec 24, 2012 at 12:55 AM, Paul Magnussen wrote:
> Thanks for all the replies. I notice also that I can force changing of
> the value (as opposed to the reference) by substituting a trivial
> expression for the right-hand side of the assignment, e.g.
>
> # g) Expression
>
> myStringA = "Fr
On Sun, Dec 23, 2012 at 7:40 AM, 7stud -- wrote:
> x = "hello"
> y = "hello"
>
> puts x.object_id
> puts y.object_id
>
> --output:--
> 2151872720
> 2151872540
>
> Quote marks are a String object constructor in ruby.
Maybe a bit more illustrative: executing the _same_ string literal
results in mul