From b10799b3e29722ba3e612d843d63206e0b8177c1 Mon Sep 17 00:00:00 2001 From: Chris Hanson Date: Tue, 28 Apr 1998 03:57:20 +0000 Subject: [PATCH] Fix bug: internal definitions weren't being handled by DEFINE-METHOD. --- v7/src/sos/macros.scm | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/v7/src/sos/macros.scm b/v7/src/sos/macros.scm index ffa2e2345..6a6bbc55f 100644 --- a/v7/src/sos/macros.scm +++ b/v7/src/sos/macros.scm @@ -1,6 +1,6 @@ ;;; -*-Scheme-*- ;;; -;;; $Id: macros.scm,v 1.7 1998/03/19 20:29:52 cph Exp $ +;;; $Id: macros.scm,v 1.8 1998/04/28 03:57:20 cph Exp $ ;;; ;;; Copyright (c) 1993-98 Massachusetts Institute of Technology ;;; @@ -416,7 +416,10 @@ (DISJUNCTION ,(lambda (name expr) (do-exprs name (disjunction-components expr list)))) - (DEFINITION ,(lambda (name expr) name (illegal expr))) + (DEFINITION + ,(lambda (name expr) + (and (not (eq? name (definition-name expr))) + (do-expr name (definition-value expr))))) (IN-PACKAGE ,(lambda (name expr) name (illegal expr))) (LAMBDA ,(lambda (name expr) -- 2.25.1