Re: kobj multiple inheritance

From: Justin T. Gibbs (gibbs_at_scsiguy.com)
Date: 09/22/03

  • Next message: Doug Rabson: "Re: kobj multiple inheritance"
    Date: Mon, 22 Sep 2003 13:50:06 -0600
    To: Doug Rabson <dfr@nlsystems.com>, arch@freebsd.org
    
    

    > I believe that I have the kobj multiple inheritance changes about ready
    > for committing now. I have locked up the class handling in kobj and I've
    > re-done the method dispatch so that it is MP-safe without needing locks
    > (I would appreciate a close look at that part by another pair of eyes).

    I've only just glanced at these patches, but I don't see how the
    method cache is now MP safe. Aren't you still vulnerable to a cache
    collision from two different threads performing an operation on the
    same class?

    I still believe that the concept of inherited interfaces is better
    way to achieve multiple inheritance. The methods I may want to
    inherit need not be associated with what we currently call a device
    class. The nice thing about your approach is that it doesn't require
    a massive rototilling of the drivers, but I fear it doesn't go far
    enough toward providing flexible inheritence.

    --
    Justin
    _______________________________________________
    freebsd-arch@freebsd.org mailing list
    http://lists.freebsd.org/mailman/listinfo/freebsd-arch
    To unsubscribe, send any mail to "freebsd-arch-unsubscribe@freebsd.org"
    

  • Next message: Doug Rabson: "Re: kobj multiple inheritance"

    Relevant Pages

    • Re: multiple inheritance super()
      ... >> classes cleanly needs multiple inheritance. ... >> Mixin stand-alone functions, and passing them extra arguments instead ... The get_value method of Mixin extracts a string from self.page. ...
      (comp.lang.python)
    • Re: super() and multiple inheritance
      ... >> superclasses in a multiple inheritance situation. ... >> situation in python? ... > associated with the base class. ...
      (comp.lang.python)
    • Re: The Failure of OOP
      ... > 1) failure to use multiple inheritance when it more accurately models the ... > where we can and we are afraid of making inefficient designs. ... > inheritance of abstract base classes causes our objects to become bloated ...
      (comp.object)
    • Re: Multiple Inheritance
      ... you can not define multiple inheritance but. ... "The reasons for omitting multiple inheritance from the Java language mostly stem from the "simple, object oriented, and familiar" goal. ... Multiple interface inheritance allows an object to inherit many different method signatures with the caveat that the inheriting object must implement those inherited methods. ...
      (comp.lang.java.programmer)
    • Re: super() and multiple inheritance
      ... > superclasses in a multiple inheritance situation. ... associated with the base class. ... in C++, you can't initialize a virtual base class ...
      (comp.lang.python)