[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Define variable only if it doesn't exist / is unbound
From: |
Valentin Villenave |
Subject: |
Re: Define variable only if it doesn't exist / is unbound |
Date: |
Thu, 28 Mar 2019 22:18:01 +0100 |
On 3/28/19, Pedro Pessoa <address@hidden> wrote:
> I imagined something like:
>
> %%% pseudo
> #(define var
> (not (is-bound? var) 0))
> %%%
I’d probably probably do something like
(null? (ly:parser-lookup 'var))
But I’m sure there are better ways :-)
Cheers,
V.
- Define variable only if it doesn't exist / is unbound, Pedro Pessoa, 2019/03/28
- Re: Define variable only if it doesn't exist / is unbound,
Valentin Villenave <=
- Re: Define variable only if it doesn't exist / is unbound, Aaron Hill, 2019/03/28
- Re: Define variable only if it doesn't exist / is unbound, Thomas Morley, 2019/03/28
- Re: Define variable only if it doesn't exist / is unbound, Aaron Hill, 2019/03/28
- Re: Define variable only if it doesn't exist / is unbound, Richard Shann, 2019/03/29
- Re: Define variable only if it doesn't exist / is unbound, Thomas Morley, 2019/03/29
- Re: Define variable only if it doesn't exist / is unbound, Aaron Hill, 2019/03/29
- Re: Define variable only if it doesn't exist / is unbound, Thomas Morley, 2019/03/29
- Re: Define variable only if it doesn't exist / is unbound, Thomas Morley, 2019/03/29
- Re: Define variable only if it doesn't exist / is unbound, Vaughan McAlley, 2019/03/30
Re: Define variable only if it doesn't exist / is unbound, Pedro Pessoa, 2019/03/28