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

"Eric M. Ludlam" <[email protected]> Sun, 3 Apr 2005 12:17:27 -0400
Newsgroups gmane.emacs.cedet,gmane.emacs.eieio
Message-ID <[email protected]>
Hi,

  I checked in changes to eieio to do this mechanism for method calls.
I submitted a new test file for methodinvocation tests.

  While I was there, I wrote tests for multiple-inheritance of the
same sort.  It seemed call-next-method did not call all subclass's
method which confused me some.  I couldn't find anything in the common
list hyperspec on it during a short futile search.  If you know what
it should do in that case, I'd like to know.

Thanks
Eric

>>> drkm <[email protected]> seems to think that:
>  Hi
>
>  It seems that the generic dispatcher doesn't call all :before
>and :after methods as it would have to.  For example, this:
>
>    (defclass A () ())
>    (defclass AA (A) ())
>    (defclass AAA (AA) ())
>
>    (defmethod F ((p A))
>      (message "F A"))
>    (defmethod F ((p AA))
>      (message "F AA"))
>
>    (defmethod F :BEFORE ((p A))
>      (message "F A before"))
>    (defmethod F :BEFORE ((p AA))
>      (message "F AA before"))
>    (defmethod F :BEFORE ((p AAA))
>      (message "F AAA before"))
>
>    (defmethod F :AFTER ((p A))
>      (message "F A after"))
>    (defmethod F :AFTER ((p AA))
>      (message "F AA after"))
>    (defmethod F :AFTER ((p AAA))
>      (message "F AAA after"))
>
>    (F (AAA nil))
>
>prints:
>
>    F AAA before
>    F AA
>    F AAA after
>
>instead of:
>
>    F AAA before
>    F AA before
>    F A before
>    F AA
>    F A after
>    F AA after
>    F AAA after
>
>--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
>_______________________________________________
>Cedet-devel mailing list
>[email protected]
>https://lists.sourceforge.net/lists/listinfo/cedet-devel
>

-- 
          Eric Ludlam:                 [email protected], [email protected]
   Home: http://www.ludlam.net            Siege: www.siege-engine.com
Emacs: http://cedet.sourceforge.net               GNU: www.gnu.org


-------------------------------------------------------
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