From: Arlen Christian Mart Cuss Date: 2007-10-13T11:51:09+09:00 Subject: Re: Syntax error when redefining >> operator to take a block Hi, On Fri, 2007-10-12 at 14:39 +0900, John Woods wrote: > I'm trying to redefine the >> operator for a particular class such that > it takes a block as its argument. It works if I invoke the redifined >> > operator using "." syntax, but causes a syntax error otherwise. I think the problem is summed up shortly in another reply, but -- >> is a binary operator, meaning it must accept one argument. Block arguments are treated in a special manner (e.g. the arity of a method which takes only a block is 0), and thus aren't valid as the other operand of a binary operator! HTH your understanding a bit, arlen