how to use a variable reference another variable?

H

Haofei Wang

since variable names are not objects, is there any possible ways to do
this? thank you!
 
L

Lionel Bouton

Haofei Wang wrote the following on 30.12.2006 20:50 :
since variable names are not objects, is there any possible ways to do
this? thank you!
Given that Ruby doesn't allow this, maybe the problem you want to solve
has a simple solution using another language feature. For what
purpose(s) would you want to use variable references?

Lionel
 
H

Haofei Wang

Given that Ruby doesn't allow this, maybe the problem you want to solve
has a simple solution using another language feature. For what
purpose(s) would you want to use variable references?

Lionel



Just curious. i vaguely have heard of it before
 
S

Sy Ali

Just curious. i vaguely have heard of it before

If you're interested, I had a thread called "patching strings together
to make a variable" a long while back which had some references to
doing such tricks..
 

Ask a Question

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.

Ask a Question

Members online

Forum statistics

Threads
473,764
Messages
2,569,564
Members
45,039
Latest member
CasimiraVa

Latest Threads

Top