Node:Methods, Next:, Previous:Running GOOPS, Up:Getting Started



2.0.2 Methods


(define-method (+ (x <string>) (y <string>))
  (string-append x y))

(+ 1 2) --> 3
(+ "abc" "de") --> "abcde"