From: gabriele renzi Date: 2003-12-13T02:56:59+09:00 Subject: Re: Simple issue giving problems il Thu, 11 Dec 2003 18:34:26 -0400, Brad ha scritto:: >Hello all, > >I have a problem that may or may not be an easy fix. :) > >Given the following: on a sidenote, I've been playing with: def swapper(obj,a,b) obj.instance_eval("#{a},#{b}=#{b},#{a}") end swapper(self,:a,:b) but this does'nt work. Anyway, if I do this: p a p b self.instance_eval("#{:a},#{:b}=#{:b},#{:a}") p a p b it works as expected (i.e. swaps the variables) Some hints to explain me this ?