[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Workaround for (not-allowed) numbers in variable names?
From: |
田村淳 |
Subject: |
Re: Workaround for (not-allowed) numbers in variable names? |
Date: |
Sun, 7 Mar 2021 11:03:54 +0900 |
Hello David,
> gamme.1 is not a variable name. It takes gamme to be an alist, and the
> entry under key 1 is what is addressed here.
Since you showed the Scheme equivalent below, I guess the above is a part of
LilyPond syntax, or something the LilyPond parser does. Is that documented
elsewhere? I’d like to know a bit more details.
Best regards,
Jun
> 2021/03/06 23:29、David Kastrup <dak@gnu.org>のメール:
>
> Silvain Dupertuis <silvain-dupertuis@bluewin.ch> writes:
>
>> I still checked this use of variable with numbers.
>> *Wonderful to see that it works.*
>>
>> One important note, though:
>> If you use a numbered variable, _you cannot use the same variable
>> without an additional number_.
>
> gamme.1 is not a variable name. It takes gamme to be an alist, and the
> entry under key 1 is what is addressed here.
>
> You can equivalently write gamme . #(- 3 2) for example.
>
> In contrast, "gamme1" (referenced as \"gamme1") _is_ a single variable
> name.
>
> As to converting numbers to roman numerals: what is wrong with
>
> #(format #f "~@r" 547)
>
> ?
>
> --
> David Kastrup
>
- Re: Workaround for (not-allowed) numbers in variable names?, (continued)
- Re: Workaround for (not-allowed) numbers in variable names?, stefano franchi, 2021/03/05
- Re: Workaround for (not-allowed) numbers in variable names?, Silvain Dupertuis, 2021/03/05
- RE: Workaround for (not-allowed) numbers in variable names?, Mogens Lemvig Hansen, 2021/03/05
- Re: Workaround for (not-allowed) numbers in variable names?, Richard Shann, 2021/03/06
- Re: Workaround for (not-allowed) numbers in variable names?, 田村淳, 2021/03/06
- Re: Workaround for (not-allowed) numbers in variable names?, Silvain Dupertuis, 2021/03/06
- Re: Workaround for (not-allowed) numbers in variable names?, David Kastrup, 2021/03/06
- Re: Workaround for (not-allowed) numbers in variable names?,
田村淳 <=
- Re: Workaround for (not-allowed) numbers in variable names?, Jean Abou Samra, 2021/03/07
- Re: Workaround for (not-allowed) numbers in variable names?, 田村淳, 2021/03/07
- Re: Workaround for (not-allowed) numbers in variable names?, David Kastrup, 2021/03/07
Re: Workaround for (not-allowed) numbers in variable names?, Valentin Petzel, 2021/03/05
Message not available
Re: Workaround for (not-allowed) numbers in variable names?, Peter Toye, 2021/03/07