guile-user
[Top][All Lists]
Advanced

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

Re: Creating a top level definition if none so far exists, on the fly.


From: Richard Shann
Subject: Re: Creating a top level definition if none so far exists, on the fly.
Date: Thu, 15 Aug 2013 13:08:02 +0100

On Thu, 15 Aug 2013 04:18:52 -0700 (PDT)
Mike Gran <address@hidden> wrote:

> > From: Richard Shann <address@hidden>
> > 
> > I have just started using GNU/Denemo under the guile 2.x and the
> > following construct no longer works:
> > 
> > (if (not (defined? 'ToggleFiguredBassMode::Active))
> >     (define ToggleFiguredBassMode::Active #f))
> 
> I remember Andy once suggested on this list that
>  
> (define-once ...) 

Thank you! that works perfectly. Now there is the question of
supporting both guile 2.0 and 1.8 users. I seem to remember this came
up in another context, but unfortunately upgrading to Debian Wheezy has
lost me any easy access to my old emails.
I'll have a delve around to see if it can be done, but if anyone just
knows off the top of their head please say.

Richard



>  
> is a possible replacement for the
>  
> (if (not (defined? ...)
>      (define ...))
>  
> construction
>  
> -Mike  




reply via email to

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