From: Joel VanderWerf Date: 2006-08-29T02:25:18+09:00 Subject: Re: Legal operator symbols Vincent Isambart wrote: > Hi, > >> > > Why are :>, :>=, :<=, :< fine as symbols, while := isn't? >> > >> > The only thing that strikes me is that the ones are all methods, >> > whereas = is an operator. But that's more of a clue than an >> > answer.... >> >> Ah, true. :== is fine, while := isn't. Oh well. > > I think that's because you can redefine all comparison operators, but > not =. = is always an simple assignment. > > Cheers, > Vincent That's true, but there is this strangeness: irb(main):020:0> x = [] => [] irb(main):021:0> class < 4 -- vjoel : Joel VanderWerf : path berkeley edu : 510 665 3407