Now that MAKE-METHOD calls INITIALIZE-INSTANCE, it is necessary to
authorChris Hanson <org/chris-hanson/cph>
Mon, 16 Jun 1997 09:00:48 +0000 (09:00 +0000)
committerChris Hanson <org/chris-hanson/cph>
Mon, 16 Jun 1997 09:00:48 +0000 (09:00 +0000)
provide a default EMP for INITIALIZE-INSTANCE until the default method
is installed.  This is done by means of the runtime system's default
EMP kludge.

v7/src/sos/method.scm

index 018f3e092c48ecc58ed0dfab8f9bbb267932bb4b..3ab7c41b9b0213afa6fa2ca1b9960ee6344cc9fa 100644 (file)
@@ -1,6 +1,6 @@
 ;;; -*-Scheme-*-
 ;;;
-;;; $Id: method.scm,v 1.3 1997/06/15 06:41:40 cph Exp $
+;;; $Id: method.scm,v 1.4 1997/06/16 09:00:48 cph Exp $
 ;;;
 ;;; Copyright (c) 1995-97 Massachusetts Institute of Technology
 ;;;
 (method-combinator-record method-procedure #t)
 (method-combinator-record computed-emp-key #t)
 
+(set-generic-procedure-default-generator!
+ initialize-instance
+ (lambda classes classes (lambda arguments arguments unspecific)))
+
 (add-method method-specializers
            (slot-accessor-method <method> 'SPECIALIZERS))
 
 
 (add-method initialize-instance
            (make-method (list <instance>)
-                        (lambda (instance) instance unspecific)))
\ No newline at end of file
+                        (lambda (instance) instance unspecific)))
+
+(set-generic-procedure-default-generator! initialize-instance #f)
\ No newline at end of file