Frederick Cheung wrote: > On Aug 12, 4:37�pm, Marnen Laibow-Koser <rails-mailing-l...@andreas- > s.net> wrote: >> are methods in Ruby. �Not all methods are operators, but that's another >> syntactic issue. > > If we're being pedantic, then not all operators are methods: ! is not > a method, nor is ?: and != is hardwired to be the negation of == > (there are a few others eg &&, :: et.)
Ack, you're right. I keep forgetting that unlike Smalltalk or C++, not *every* operator is a method call. Sorry about the error. (However, << *is* both.) Best, -- Marnen Laibow-Koser http://www.marnen.org [email protected] -- Posted via http://www.ruby-forum.com/. --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---

