[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Define variable only if it doesn't exist / is unbound
From: |
Pedro Pessoa |
Subject: |
Define variable only if it doesn't exist / is unbound |
Date: |
Thu, 28 Mar 2019 14:03:38 -0700 (MST) |
Hello,
I want to init a variable only if it isn't bound. This seems a simple
matter, I was surpised I couldn't do it.
The thing is that it throws an 'unbound variable error' with anything I try.
I imagined something like:
%%% pseudo
#(define var
(not (is-bound? var) 0))
%%%
Cheers,
Pedro Pessoa
--
Sent from: http://lilypond.1069038.n5.nabble.com/User-f3.html
- Define variable only if it doesn't exist / is unbound,
Pedro Pessoa <=
- Re: Define variable only if it doesn't exist / is unbound, Valentin Villenave, 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, 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