From: Chris Hanson Date: Tue, 28 Apr 1998 03:57:20 +0000 (+0000) Subject: Fix bug: internal definitions weren't being handled by DEFINE-METHOD. X-Git-Tag: 20090517-FFI~4807 X-Git-Url: https://birchwood-abbey.net/git?a=commitdiff_plain;h=b10799b3e29722ba3e612d843d63206e0b8177c1;p=mit-scheme.git Fix bug: internal definitions weren't being handled by DEFINE-METHOD. --- 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)