E
Eliah Hecht
Is there a way to do something like
a = 1
alias(b,a)
a += 1
where the desired effect is that now b == 2?
a = 1
alias(b,a)
a += 1
where the desired effect is that now b == 2?
Eliah said:Is there a way to do something like
a = 1
alias(b,a)
a += 1
where the desired effect is that now b == 2?
Eliah said:I know why it doesn't work, I just want to know how to make it work
(if it's doable without making a wrapper object).
Eliah said:I mean, can't I just tell ruby that b refers to a, instead of
referring to a's value?
# Entire needlessly included lengthy prior post snippedEliah said:I mean, can't I just tell ruby that b refers to a, instead of
referring to a's value?
Sorry about that; Gmail's got me spoiled.Can I ask that people try, when replying to a post, a) trim all but the
parts of the prior post that are needed for context, and b) not top-post
(that is, please do not put the reply *before* the text being replied to).
Want to reply to this thread or ask your own question?
You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.