From: Ralph Shnelvar Date: 2012-02-21T05:49:57+09:00 Subject: Re: Accessing a local variable through a symbol Darryl, Monday, February 20, 2012, 1:35:10 PM, you wrote: DLP> On Mon, Feb 20, 2012 at 3:27 PM, Ralph Shnelvar wrote: >> Let's say I have >> >> � def y >> � � a=42 >> � � x = some_kernel_function(:a) �# I'd like x to be 42 >> � end >> >> Is there a way to get x to be 42? DLP> What, exactly, is it you're trying to do? What is "some_kernel_function"? DLP> Since a in the above is a local variable, why can't you just assign it directly? DLP> x = a DLP> Or are you trying to do something like access the most recent value DLP> processed or something like that? local_variables delivers a list of symbols of the local variables. I'm trying to access the underlying values associated with that list.