unofficial mirror of guile-user@gnu.org 
 help / color / mirror / Atom feed
* Creating a top level definition if none so far exists, on the fly.
@ 2013-08-15 10:57 Richard Shann
  2013-08-15 11:10 ` rixed
  2013-08-15 11:18 ` Mike Gran
  0 siblings, 2 replies; 7+ messages in thread
From: Richard Shann @ 2013-08-15 10:57 UTC (permalink / raw)
  To: guile-user


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))

The intention is to have a variable defined at the top level which
starts out being #f. The need for the construct arose because it
appears in a self-contained script which cannot expect an
initialization step to have been performed.
Is there a straight-forward way to modify this?

Richard



^ permalink raw reply	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2013-09-07  9:48 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-08-15 10:57 Creating a top level definition if none so far exists, on the fly Richard Shann
2013-08-15 11:10 ` rixed
2013-08-15 11:18 ` Mike Gran
2013-08-15 12:08   ` Richard Shann
2013-08-15 12:17     ` Mike Gran
2013-08-15 13:37       ` Richard Shann
2013-09-07  9:48         ` Andy Wingo

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).