From: Rick DeNatale Date: 2008-09-13T03:37:47+09:00 Subject: Re: pass by reference in each loop ------=_Part_69018_7647402.1221245076621 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline On Fri, Sep 12, 2008 at 4:15 AM, Xiong Chiamiov < xiong.chiamiov+ruby_forum@gmail.com >wrote: > Robert Klemme wrote: > > 2008/9/12 Xiong Chiamiov > >: > >>> That's quite near to what I suggested: just drop all the @a, @b etc. > and > >>> stuff everything in an array - or have multiple arrays, one per class > of > >>> data (i.e. data which undergoes wml and data which does not). Anyway, > >>> chances are that you'll be able to find an elegant solution without > >>> needing to change the language. > >> > >> I don't think I understood what you were suggesting the first time. If > >> I understand what you're suggesting, it is to have the values themselves > >> in the array, rather than variables pointing *to* those values, yes? > > > > What exactly do you mean by "variable pointing to those values"? > > Well, I'm not quite sure how to explain it. This may or may not help you understand the relationship between variables, references, and objects in Ruby. I wrote it quite some time ago. http://talklikeaduck.denhaven2.com/articles/2006/09/13/on-variables-values-and-objects -- Rick DeNatale My blog on Ruby http://talklikeaduck.denhaven2.com/ ------=_Part_69018_7647402.1221245076621--