Re: Slot characteristic inheritance
"Eric M. Ludlam" <[email protected]> Wed, 6 Jun 2007 12:06:45 -0400
| Newsgroups | gmane.emacs.eieio |
|---|---|
| Message-ID | <[email protected]> |
In eieio.el, I see the following comment: ;; TODO: ;; For other slots (protection, etc) we should get the ;; original value, and make sure each is equal to the ;; last value and throw an error, or accept it. which seems as though I never got around to implementing this section. If you'd like to take a stab at fixing the part for custom and customgroup, that'd be ideal. There is a good example just before that comment. Otherwise I'll look into sometime soon. Thanks Eric >>> Pierre Lorenzon <[email protected]> seems to think that: >Hi, > >Sorry if this question has already been discussed here but I am >a newbie in using eieio. Well I read in info documentation : >"Every slot in parent > is replicated in the new class. If two parents share the same > slot name, the parent which appears in the list first sets the > attributes for that slot. If a slot in the new class' slot list > matches a parent, then the new specifications for the child class > override that of the parent." > >Well it does not seem to be the case for the custom attribute >for instance. Indeed when a read teh code, I saw that >init, type (and maybe default) really override settings for >parent class but not custom. > >Why ? Is it something that has to be done in the code or should >it absolutely not be done if it would disturbe the widget >definition process ? > >Bests > >Pierre > > >------------------------------------------------------------------------- >This SF.net email is sponsored by DB2 Express >Download DB2 Express C - the FREE version of DB2 express and take >control of your XML. No limits. Just data. Click to get it now. >http://sourceforge.net/powerbar/db2/ >_______________________________________________ >cedet-eieio mailing list >[email protected] >https://lists.sourceforge.net/lists/listinfo/cedet-eieio > -- 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 ------------------------------------------------------------------------- This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/