[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Workaround for (not-allowed) numbers in variable names?
From: |
David Kastrup |
Subject: |
Re: Workaround for (not-allowed) numbers in variable names? |
Date: |
Sat, 06 Mar 2021 15:29:38 +0100 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/28.0.50 (gnu/linux) |
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
- Workaround for (not-allowed) numbers in variable names?, stefano franchi, 2021/03/05
- 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 <=
- Re: Workaround for (not-allowed) numbers in variable names?, 田村淳, 2021/03/06
- 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?, Peter Toye, 2021/03/07