SCM_DEBUG fix: Don't apply SCM_CAR to non-pairs when walking argument
authorKen Raeburn <raeburn@raeburn.org>
Mon, 16 Nov 2009 04:43:17 +0000 (23:43 -0500)
committerKen Raeburn <raeburn@raeburn.org>
Mon, 16 Nov 2009 19:24:32 +0000 (14:24 -0500)
commit222831b443a14dd58ef646e8b313a38c38237f69
treeda0799a331f55ea1f692c8934a9aaf9991335be6
parentd02f3137146bafe944d8c6736f9044dbf54868f9
SCM_DEBUG fix: Don't apply SCM_CAR to non-pairs when walking argument
lists in method cache matching.

* libguile/goops.c (scm_mcache_lookup_cmethod): Don't apply SCM_CAR to
  non-pairs when walking argument lists in method cache matching.
  Don't check for CLASSP or symbol in the car slot, since the end of
  the specifier list is a non-pair.  Update comments to reflect new
  structure of method cache entry.
* module/oops/goops/dispatch.scm: Update comments here too.
libguile/goops.c
module/oop/goops/dispatch.scm