guile-devel
[Top][All Lists]
Advanced

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

Re: illegal uses of define in guile


From: Bruce Korb
Subject: Re: illegal uses of define in guile
Date: Mon, 14 Oct 2002 17:18:28 -0700

Neil Jerram wrote:

>     >> Currently, guile allows the following:
>     >> (if (not (defined? '%load-verbosely))
>     >> (define %load-verbosely #f))
> 
>     Bruce> I do that.
> 
> I do too; however, I guess one could instead write this:
> 
> (define %load-verbosely
>         (if (defined? '%load-verbosely)
>             %load-verbosely
>             #f))
> 
> Would this work?

Even if it worked in that example, it leaves open:

  (if (some-sort-of-context-test)
      (begin
        (define ....)
        ...
  )   )

'cuz that's where I'd really have my problem.  :-(




reply via email to

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