unofficial mirror of guile-user@gnu.org 
 help / color / mirror / Atom feed
* More Guile 1.8 code failing in 2.x
@ 2013-02-27 10:07 Richard Shann
  2013-02-27 13:19 ` mark
  2013-02-27 14:50 ` Stefan Israelsson Tampe
  0 siblings, 2 replies; 10+ messages in thread
From: Richard Shann @ 2013-02-27 10:07 UTC (permalink / raw)
  To: guile-user

We have one more construct being refused as we upgrade to guile 2.0 in
GNU/Denemo

(if (not (defined? 'ToggleTripleting::InsideTriplet))
    (define ToggleTripleting::InsideTriplet #t))

It is intended to set up a flag which toggles between true and false on
each call. If already set up, the flag is not altered.

Apparently (I haven't been able to check) Guile 2.0  gives an error.

#f definition in expression context, where definitions are not allowed, ((line . 2) (column . 4) (filename . #f)) (define ToggleTripleting::InsideTriplet #t) #f)

Can anyone suggest what could replace that? I would prefer to to replace
it with something that has the same semantics, rather than setting up
some alternative method of handling the situation - registering all such
variables on program startup, or some such - as at the moment this code
only evaluated if used and doesn't require any mechanism to get
initialized, other than this construct.

Richard Shann





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

end of thread, other threads:[~2013-02-27 17:59 UTC | newest]

Thread overview: 10+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-02-27 10:07 More Guile 1.8 code failing in 2.x Richard Shann
2013-02-27 13:19 ` mark
2013-02-27 14:22   ` Richard Shann
2013-02-27 14:28     ` Ludovic Courtès
2013-02-27 14:48     ` Mike Gran
2013-02-27 17:54       ` Richard Shann
2013-02-27 15:08     ` Andy Wingo
2013-02-27 15:13       ` Andy Wingo
2013-02-27 17:59         ` Richard Shann
2013-02-27 14:50 ` Stefan Israelsson Tampe

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