From: Alex Khere Date: 2006-08-12T08:47:39+09:00 Subject: Re: Beginner's question: assigning same value to many variab Eero Saynatkari wrote: > In ruby there are no statements, just expressions. Therefore: > > @a = @b = 0 > > The one caveat, though, is that the references are the same > which means that, for example, assigning "hello" this way > might lead to some confusing results... Thank you, the first example will probably work in this case, but I can experiment with your other examples. -- Posted via http://www.ruby-forum.com/.