On Monday 05 June 2006 00:33, Han-Wen Nienhuys wrote:
> Erik Sandberg schreef:
> > On Sunday 04 June 2006 17:40, Han-Wen Nienhuys wrote:
> >> Erik Sandberg schreef:
> >>> On Saturday 03 June 2006 14:39, Han-Wen Nienhuys wrote:
> >>>> Erik Sandberg schreef:
> >>
> >> I don't understand why you have to do the non-const initializations in
> >> get_music_list(). Isn'tthere a way to do that in construct_children, and
> >> leave the constness?
> >
> > It's just so that start/stop events only need to be created once (look at
> > the initialisations of start_ and stop_). If you like, I can remove those
> > members and use methods create_stop_event and create_start_event instead
> > (still avoids code duplication, but is slightly less efficient).
>
> construct_children is also only called once. You can init start_ and
> stop_ from there, and use those members in the get_music_list() function.

true (it just wasn't that apparent to me, because get_music_list is called 
_from_ construct children, and I forgot that Virtual Functions Are My 
Friends)

-- 
Erik


_______________________________________________
lilypond-devel mailing list
lilypond-devel@gnu.org
http://lists.gnu.org/mailman/listinfo/lilypond-devel

Reply via email to