From: Simen Edvardsen Date: 2006-06-26T04:19:43+09:00 Subject: Re: Odd << behaviour It's syntactic sugar. You can't expect it to work with arbitrary arities. It's a bit like complaining that you can't to `1 + 2, 3' in Ruby. << makes sense with one argument. You know that it really just masks an method call. If you are so comfortable with Ruby that you understand what is a method call and what's not, having to use the method call syntax shouldn't be that difficult. Remember, Ruby has lots of more syntax than, say, Smalltalk, but at its core the semantics are, if not as simple, close. On 6/25/06, Ryan Mulligan wrote: > Mark Van Holstyn wrote: > > being able to do... > > > > a << :arg1, :arg2 > > > > is just syntax sugar for doing... > > > > a.<<( :arg1, :arg2 ) > > > > Using the first version however only works with one argument. > > > > mark > > Right. > The issue I have is more with the implications of that and how operator > overriding works. > > -- > Posted via http://www.ruby-forum.com/. > > -- - Simen