[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Lilypond-auto] Issue 4564 in lilypond: make Grob an abstract class
From: |
lilypond |
Subject: |
Re: [Lilypond-auto] Issue 4564 in lilypond: make Grob an abstract class |
Date: |
Sun, 16 Aug 2015 18:28:51 +0000 |
Comment #2 on issue 4564 by address@hidden: make Grob an abstract
class
https://code.google.com/p/lilypond/issues/detail?id=4564
I was merely hoping to allow something like this:
class Accidental_interface : public Grob { ... }
Accidental_interface *acc = get_interface<Accidental_interface> (grob);
if (acc) {
acc->do_something ();
}
get_interface<T>(grob) would check that the grob implements the T interface
and do a static downcast.
That way, methods in the interface can call grob methods via the implicit
this pointer. That fits with your hopes to convert scheme callbacks into
member functions, doesn't it?
I thought this patch had merit on its own, since nobody is instantiating a
base Grob anyway, but if you disagree, I can retract it and combine it with
future changes.
--
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
- [Lilypond-auto] Issue 4564 in lilypond: make Grob an abstract class, lilypond, 2015/08/16
- Re: [Lilypond-auto] Issue 4564 in lilypond: make Grob an abstract class, lilypond, 2015/08/16
- Re: [Lilypond-auto] Issue 4564 in lilypond: make Grob an abstract class,
lilypond <=
- Re: [Lilypond-auto] Issue 4564 in lilypond: make Grob an abstract class, lilypond, 2015/08/17
- Re: [Lilypond-auto] Issue 4564 in lilypond: make Grob an abstract class, lilypond, 2015/08/18
- Re: [Lilypond-auto] Issue 4564 in lilypond: make Grob an abstract class, lilypond, 2015/08/18
- Re: [Lilypond-auto] Issue 4564 in lilypond: make Grob an abstract class, lilypond, 2015/08/18
- Re: [Lilypond-auto] Issue 4564 in lilypond: make Grob an abstract class, lilypond, 2015/08/18
- Re: [Lilypond-auto] Issue 4564 in lilypond: make Grob an abstract class, lilypond, 2015/08/18
- Re: [Lilypond-auto] Issue 4564 in lilypond: make Grob an abstract class, lilypond, 2015/08/19
- Re: [Lilypond-auto] Issue 4564 in lilypond: make Grob an abstract class, lilypond, 2015/08/20
- Re: [Lilypond-auto] Issue 4564 in lilypond: make Grob an abstract class, lilypond, 2015/08/20
- Re: [Lilypond-auto] Issue 4564 in lilypond: make Grob an abstract class, lilypond, 2015/08/23