lilypond-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

translatorgroup as translator


From: Han-Wen Nienhuys
Subject: translatorgroup as translator
Date: Tue, 19 Mar 2002 21:48:33 +0100

address@hidden writes:
> ARGH!
> 
> Translator_group:
>   class Translator_group : public virtual Translator {
> 
> 
> Translator:
>   Translator_group * daddy_trans_l_ ;
> 
> SCM
> Translator::internal_get_property (SCM sym) const
> {
>   return daddy_trans_l_->internal_get_property (sym);
> }
> 
> 
> 
> So if you cast a Translator_group to a Translator (which should be quite
> sane) and call internal_get_property then you get to the Parent's
> property instead of its own property. Is there a good reason for this?

no, I guess a "virtual" keyword got lost somewhere.


-- 

Han-Wen Nienhuys   |   address@hidden    | http://www.cs.uu.nl/~hanwen/




reply via email to

[Prev in Thread] Current Thread [Next in Thread]