|
From: | lilypond |
Subject: | Re: [Lilypond-auto] Issue 4564 in lilypond: make Grob an abstract class |
Date: | Tue, 18 Aug 2015 17:02:07 +0000 |
Comment #7 on issue 4564 by address@hidden: make Grob an abstract class https://code.google.com/p/lilypond/issues/detail?id=4564Expounding on #6: an actual class lattice reflecting the actual relations would be to have interfaces derive from a _virtual_ Grob base class and have a derived Grob type, in turn, derive from all its interfaces.
In that case, the grob's member function can use all member functions of its interfaces, and those may in turn use the member functions of the basic Grob type, with dynamic_cast working whenever it is sensible.
However, we don't use virtual inheritance anywhere else, and one would have to think carefully about how to extend this to Scheme-defined interfaces/grobs.
--You received this message because this project is configured to send all issue notifications to this address.
You may adjust your notification preferences at: https://code.google.com/hosting/settings
[Prev in Thread] | Current Thread | [Next in Thread] |