Changeset 4475


Ignore:
Timestamp:
10/21/03 01:00:52 (18 years ago)
Author:
piso
Message:

Work in progress.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/j/src/org/armedbear/lisp/defclass.lisp

    r4474 r4475  
    22;;;
    33;;; Copyright (C) 2003 Peter Graves
    4 ;;; $Id: defclass.lisp,v 1.34 2003-10-20 18:06:15 piso Exp $
     4;;; $Id: defclass.lisp,v 1.35 2003-10-21 01:00:52 piso Exp $
    55;;;
    66;;; This program is free software; you can redistribute it and/or
     
    892892
    893893(defun ensure-method (gf &rest all-keys)
     894  (let* ((plist-gf (analyze-lambda-list (generic-function-lambda-list gf)))
     895         (plist-method (analyze-lambda-list (getf all-keys :lambda-list))))
     896    (unless (= (length (getf plist-gf :required-args))
     897               (length (getf plist-method :required-args)))
     898      (error "method has wrong number of required arguments for generic function"))
     899    (unless (= (length (getf plist-gf :optional-args))
     900               (length (getf plist-method :optional-args)))
     901      (error "method has wrong number of optional arguments for generic function")))
    894902  (let ((new-method
    895903         (apply
Note: See TracChangeset for help on using the changeset viewer.