Am Mo., 8. Feb. 2021 um 00:29 Uhr schrieb Jean Abou Samra <[email protected]>: > > ((finalize this-engraver) > ;; house keeping > (set! trill-spanner #f) > (set! rhythmic-events '()) > (set! bar-line #f))))) > > > Hi Harm, > > Is there a reason to reset variables in 'finalize' > methods like this? > > I've done without so far and never had any > problem; engravers in scm/scheme-engravers.scm > only do it when you are their author ;-) > > Just curious. > > Thanks, > Jean
Well, I seem to remember that there was a problem, if a custom-engraver was consisted in various files all compiled in one go like lilypond file-1.ly file-2.ly. Some bleed over, iirc. I didn't test recently, though. It doesn't hurt to reset the variables, imho. Cheers, Harm
