From 2b838f70704ae0bebc3c00c0114505c80967f51f Mon Sep 17 00:00:00 2001 From: Mark H Weaver Date: Sat, 29 Jan 2011 22:07:49 -0500 Subject: [PATCH] Fix GOOPS method compilation bug when no next-method exists * module/oop/goops/compile.scm (compute-cmethod): Fix a bug that caused the method compiler to barf while compiling a method that calls (next-method), if there is no applicable next method. --- module/oop/goops/compile.scm | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/module/oop/goops/compile.scm b/module/oop/goops/compile.scm index db1a160..ace89b4 100644 --- a/module/oop/goops/compile.scm +++ b/module/oop/goops/compile.scm @@ -48,7 +48,7 @@ (let ((make-procedure (slot-ref (car methods) 'make-procedure))) (if make-procedure (make-procedure - (if (null? methods) + (if (null? (cdr methods)) (lambda args (no-next-method (method-generic-function (car methods)) args)) (compute-cmethod (cdr methods) types))) -- 1.5.6.5