Re: Guile-2.2 - goops slot redefinition at subclass level
Andy Wingo writes: > On Mon 27 Feb 2017 01:09, David Pirottewrites: > >> 2- slot redefinition at subclass level >> >> See bug#20423 for a full description. > > I think the correct solution here is to implement the slot combination > protocol; see http://mop.lisp.se/dictionary.html#compute-slots. This > can be done in 2.2. It's all in Scheme now so hopefully it will be > easier to hack on. > > I do not have any time to devote to this area, however, and as it's > possible to implement this in the stable series and it's not a > regression, I don't think it's a release blocker. > > Andy Okay, it's good to know that you're open to this being implemented as a feature (and that there's a clear explaination of how to do it above). Maybe in the not too distant future I can take a crack at it, as it's something I'd love to have myself. - Chris
Re: Guile-2.2 - goops slot redefinition at subclass level
On Mon 27 Feb 2017 01:09, David Pirottewrites: > 2-slot redefinition at subclass level > > See bug#20423 for a full description. I think the correct solution here is to implement the slot combination protocol; see http://mop.lisp.se/dictionary.html#compute-slots. This can be done in 2.2. It's all in Scheme now so hopefully it will be easier to hack on. I do not have any time to devote to this area, however, and as it's possible to implement this in the stable series and it's not a regression, I don't think it's a release blocker. Andy
Guile-2.2 - goops slot redefinition at subclass level
Hello Andy, > * GOOPS: are there incompatible changes that we think are bad? >Subthread :) 2- slot redefinition at subclass level See bug#20423 for a full description, here is the summary of what I think we should do: When there are superclasses, a subclass can specify a slot that has already been specified for a superclass. When this happens, the information in slot options has to be combined. For the slot options listed above, either the option in the subclass overrides the one in the superclass or there is a union: :ACCESSOR - union :INITARG - union :INITFORM - overrides Tbh, I'm not interested in the justification upon why 'things' are the way are in goops now wrt this problem, let's save our energy here. I'd like 'things' to change wrt this problem so we implement the clos protocol, ide4ally, that would happen in guile-2.2 'already'. Happy Hacking, David pgpwtvEUGNIaR.pgp Description: OpenPGP digital signature