[Top][All Lists]

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

Re: bookparts

From: David Kastrup
Subject: Re: bookparts
Date: Mon, 05 Mar 2018 22:26:28 +0100
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/26.0.50 (gnu/linux)

Thomas Morley <address@hidden> writes:

> 2018-03-05 21:33 GMT+01:00 Wols Lists <address@hidden>:
>> On 05/03/18 17:55, Kieren MacMillan wrote:
>>> Hi Knut,
>>>> Because the definition of testing is invalid at that point of the main
>>>> source file. If would contain e.g. a score or a \paper block
>>>> no error would occur.
>>> No, it still throws an error because you can't define a variable
>>> inside a \bookpart (which is what \include-ing it at that point
>>> does).
>> And as a programmer, I think "scope". You are defining the variable
>> where you want to use it. It's widely accepted that that is good
>> practice, global variables lead to errors, mistakes and confusion. But
>> here you are forced to declare your variables at the global level :-(
>> Cheers,
>> Wol
> Can't agree.
> Nobody ever complained about not working:
> \score {
>   mus = { R1 }
>   \new Staff \mus
> }

I'm pretty sure somebody would have complained about that.  Also I am
pretty sure we got complaints about things like

#{ mus = { R1 } #}

not working.  The difference is that it's easier to make them cease and
desist here.

David Kastrup

reply via email to

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