From 6ffe476ad4c840a00f0c2e72c6020091e3ce801d Mon Sep 17 00:00:00 2001 From: Matthias Benkard Date: Thu, 6 Mar 2008 21:48:10 +0100 Subject: Refactor data conversion. darcs-hash:9ff52b1ed764ab58522070fc35eca4ab97844a1c --- Lisp/method-definition.lisp | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) (limited to 'Lisp/method-definition.lisp') diff --git a/Lisp/method-definition.lisp b/Lisp/method-definition.lisp index cd32600..7218f48 100644 --- a/Lisp/method-definition.lisp +++ b/Lisp/method-definition.lisp @@ -404,13 +404,12 @@ __define-objective-c-generic-function__. ,@arguments)) (format t "~&~A" (list ,@arg-symbols))) (unwind-protect - (,(case (typespec-primary-type return-type) - ((:id :class :selector) 'pointer) - (t 'progn)) + (coerce-object (,(generic-function-name gf) ;; Leave the second argument (the ;; selector) out. - ,@(list* (car arguments) (cddr arguments)))) + ,@(list* (car arguments) (cddr arguments))) + ',return-type) ;; FIXME: We may want to wrap signalled ;; SERIOUS-CONDITIONS in some kind of ;; Objective-C exception object and put -- cgit v1.2.3