generic tweaks; realizing what the setter slot actually is
authorAndy Wingo <wingo@pobox.com>
Thu, 5 Nov 2009 16:35:44 +0000 (17:35 +0100)
committerAndy Wingo <wingo@pobox.com>
Wed, 25 Nov 2009 23:25:06 +0000 (00:25 +0100)
commita9a90a8820e6f6a36d0f17cdca5f8ba0d7ca735b
tree73d8881b784f0881e91417ed5a17ae37614b8098
parent2aecf4cfe22962118e945a9a4b6ab52e063a7119
generic tweaks; realizing what the setter slot actually is

* libguile/goops.h (scm_si_dispatch_procedure)
  (scm_si_effective_methods): Rename the new generics slots to
  "effective-methods" and "dispatch-procedure".
  (scm_si_generic_setter): Rename this one from "%setter" to "setter",
  and it's not a cache -- it's a pointer to the setter, which is also a
  generic. I didn't realize that before. It's better this way (like it
  always was.)
  (SCM_SET_GENERIC_DISPATCH_PROCEDURE)
  (SCM_CLEAR_GENERIC_EFFECTIVE_METHODS): New helper macros.

* libguile/goops.c (clear_method_cache): Clear the new dispatch
  procedure and the effective methods as well.
  (create_standard_classes): Rename slots, and fix the setter slots.
libguile/goops.c
libguile/goops.h