------art_12016_9801184.1151262477211
Content-Type: text/plain; charset=ISO-8859-1; format=flowed
Content-Transfer-Encoding: 7bit
Content-Disposition: inline

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

On 6/25/06, Ryan Mulligan <ryantmulligan / gmail.com> wrote:
>
> The discrepancy here bothers me, because all of the Ruby tutorials I
> have read talk about how you can override operators, but really it is
> only half true. You can only overide the logic of the operator but not
> it's arity. This seems unacceptable in my conceptual model of the
> language, despite the problems with grammar that Logan Capalado brought
> up on the IRC chat.
>
> --
> Posted via http://www.ruby-forum.com/.
>
>


-- 
Mark Van Holstyn
mvette13 / gmail.com
http://lotswholetime.com

------art_12016_9801184.1151262477211--