Re: [eieio] :before and :after methods not called

drkm <[email protected]> Fri, 11 Mar 2005 18:41:03 +0100
Newsgroups gmane.emacs.cedet,gmane.emacs.eieio
Organization None
Message-ID <[email protected]>
drkm writes:

>   It seems that the generic dispatcher doesn't call all :before
> and :after methods as it would have to.

  As quoted in my previous posting, the CLOS specs says:

    - All the :before methods are called, in most-specific-first
      order.  Their values are ignored.  An error is signaled if
      call-next-method is used in a :before method.

    - [...]

    - All the :after methods are called, in most-specific-last order.
      Their values are ignored.  An error is signaled if
      call-next-method is used in a :after method.

  So all these methods have to be called.  And call-next-method can't
be used in these (as in eieio-tests.el :-o).

  Sorry, I don't have the time to write some test case for it.  But it
could be simple, by using something similar to the patch to test the
value of a generic function call I just posted.  By pushing a symbol
in each method, and checking the resulting list is the required one.

  Thanks,

--drkm



-------------------------------------------------------
SF email is sponsored by - The IT Product Guide
Read honest & candid reviews on hundreds of IT Products from real users.
Discover which products truly live up to the hype. Start reading now.
http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click