lilypond-devel
[Top][All Lists]
Advanced

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

Re: Provide define-session and define-session-public commands (issue 658


From: Janek Warchoł
Subject: Re: Provide define-session and define-session-public commands (issue 6588056)
Date: Wed, 3 Oct 2012 18:29:08 +0200

On Wed, Oct 3, 2012 at 10:04 AM,  <address@hidden> wrote:
> Uh, I guess we have a fundamental misunderstanding here.  We already
> _have_ sessions (you can call lilypond on several different .ly input
> files and have them processed tentatively independently).  We just don't
> have any help for the programmer who tries dealing with them.  What
> currently exists is that each session gets its fresh parser copy, and
> the parser variables are initialized from the state right before the
> first session started.  For everything else, you are out on your own and
> responsible that all the variables in .scm files start with the same
> values each session, if necessary by reinitializing them in ly/init.ly.

Yeah, i read the barline thread when i was offline and i understand now.

> define-session will declare a variable that has its value recorded at
> the start of the first session and reinstated at the start of each
> following session.

I think this paragraph could be included in commit message.

> It is not really providing anything new, just gives a face to something
> that programmers were expected to do right on their own, but which is
> really too hard to understand or explain.

Indeed ;)
Thanks for explanations!
Janek



reply via email to

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