From: ts Date: 2001-04-17T14:08:45+09:00 Subject: [ruby-talk:13728] Re: operator + >>>>> "J" == Johann Hibschman writes: J> (defun add ((s number) (op TridiagonalOperator)) J> ..) J> (defun add ((op TridiagonalOperator) (s number)) J> ..) J> (defun add ((op TridiagonalOperator) (v Vector)) J> ..) J> (defun add ((v Vector) (op TridiagonalOperator)) J> ..) It's easy to add this in ruby J> etc., and the compiler will automatically dispatch to the right J> method. The problem is here, the dispatch is made at runtime (and not compile time). This mean that probably you end with something slow Guy Decoux