From: Robert Klemme Date: 2008-09-12T06:44:29+09:00 Subject: Re: pass by reference in each loop On 11.09.2008 23:12, Xiong Chiamiov wrote: > Robert's solution would allow me to only write the function name once, > but the variables I'd still have to type twice, and I really like DRY. > > My first thought was to store a list of all those variables in an array > and loop through them, as it's then very easy to add an additional > variable. Perhaps I'm approaching this the complete wrong way, though? 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. Kind regards robert