From: Bertram Scharpf Date: 2005-01-25T01:46:25+09:00 Subject: Re: Is overloading of the "! operator" possible or not Hi, Am Montag, 24. Jan 2005, 17:25:52 +0900 schrieb Neulinger Robert (SMS T CARS SW External): > I'm tying to overload the "! operator", which should be possible due > to the explanation in the book "Programming ruby" -> The Ruby > Language ->Operator Expressions, > but it's not working. > > On the other hand in the FAQ the ! operator is marked as non-overloadable. > --------------- > http://www.rubycentral.com/faq/rubyfaq-7.html > See section 7.2... > > What is the truth and/or how does it work? Further, the 1.4 Manual (http://www.ruby-doc.org/docs/Manual/man-1.4/syntax.html#operator) says: Most of operators are just method invocation in special form. But some operators are not methods, but built in to the syntax: =, .., ..., !, not, &&, and, ||, or, !=, !~ Bertram -- Bertram Scharpf Stuttgart, Deutschland/Germany http://www.bertram-scharpf.de