Multiple inheritance, why why why....

Taylor Dondich tdondich at gmail.com
Thu Aug 21 03:05:52 CEST 2008


First off, was there REALLY a need for multiple inheritance?  It's
something that I think would REALLY stab you in the foot.  With a well
planned template structure with single inheritance, I'd think you'd
resolve any issue.   However, because we have it, it's good to
understand it.

Does anyone want to explain to me WHY it was chosen that the
precedence order of variables go from left to right, instead of right
to left?  I mean, if you have the following:

define host {
  host_name testhost
  use templatea, templateb
}

And both templates have different values for check_interval.  That the
value in templatea is the one used instead of the one from templateb.
That's how the docs describe it.  Does it make sense to most people
that this is "correct" or would you think it'd be the other way?

I'm writing a configuration tool and visually it's a vertical list, so
my idea is that the bottom level template overrides any values from
upper templates.  It just seems weird.

Taylor

-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
_______________________________________________
Nagios-users mailing list
Nagios-users at lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nagios-users
::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. 
::: Messages without supporting info will risk being sent to /dev/null





More information about the Users mailing list