Re: common lisp compatability

2013-02-27 Thread rm
On Wed, Feb 27, 2013 at 05:21:47PM +0100, Stefan Israelsson Tampe wrote: > Hi all, > > I just started a small project where I intend to try to port over > common lisp tools as wel as define a common lisp language in guile-2. > > You may find it at: https://gitorious.org/guile-cl/guile-cl > > The

Re: common lisp compatability

2013-02-27 Thread Stefan Israelsson Tampe
On Wednesday, February 27, 2013 08:52:09 PM r...@tuxteam.de wrote: > I find loop an invaluable syntactic extension for embedable scheme ... > But I guess that's a matter of taste Yes taste is differnt. To be onest the wow feeling of reading into CL's loop macro facilities got me started becoming f

Re: More Guile 1.8 code failing in 2.x

2013-02-27 Thread Ludovic Courtès
Richard Shann skribis: > (if (defined? 'define-once) > (define-once ToggleTripleting::InsideTriplet #t) > (eval-string "(if (not (defined? 'ToggleTripleting::InsideTriplet)) > (define ToggleTripleting::InsideTriplet #t))")) Rather something along these lines:

Re: More Guile 1.8 code failing in 2.x

2013-02-27 Thread Richard Shann
On Wed, 2013-02-27 at 16:13 +0100, Andy Wingo wrote: > On Wed 27 Feb 2013 16:08, Andy Wingo writes: > > > Here is a Guile 2-compatible version: > > > > (cond-expand > >(guile-2) ; nothing > >(else ; guile < 2.0 > > (define-macro (define-once sym exp) > > `(define ,sym (if (mod

Re: More Guile 1.8 code failing in 2.x

2013-02-27 Thread Richard Shann
On Wed, 2013-02-27 at 06:48 -0800, Mike Gran wrote: > > From: Richard Shann > > > > Thanks for this - it seems define-once is not defined in guile 1.8 > > however, so while some systems only have guile 2.0 (Fedora) and others > > only have guile 1.8 (Debian stable) I would need something more. >

common lisp compatability

2013-02-27 Thread Stefan Israelsson Tampe
Hi all, I just started a small project where I intend to try to port over common lisp tools as wel as define a common lisp language in guile-2. You may find it at: https://gitorious.org/guile-cl/guile-cl There is only one module, loop.scm that implements the cl loop macro. It is an intresting ta

Re: More Guile 1.8 code failing in 2.x

2013-02-27 Thread Andy Wingo
On Wed 27 Feb 2013 16:08, Andy Wingo writes: > Here is a Guile 2-compatible version: > > (cond-expand >(guile-2) ; nothing >(else ; guile < 2.0 > (define-macro (define-once sym exp) > `(define ,sym (if (module-locally-bound? ',sym) ,sym ,val) Sorry, thinko+typo. Should b

Re: More Guile 1.8 code failing in 2.x

2013-02-27 Thread Andy Wingo
Hi Richard, On Wed 27 Feb 2013 15:22, Richard Shann writes: > On Wed, 2013-02-27 at 08:19 -0500, m...@markwitmer.com wrote: >> Richard Shann writes: >> >> > (if (not (defined? 'ToggleTripleting::InsideTriplet)) >> > (define ToggleTripleting::InsideTriplet #t)) I'm sorry we were not able t

Re: More Guile 1.8 code failing in 2.x

2013-02-27 Thread Mike Gran
> From: Richard Shann > > Thanks for this - it seems define-once is not defined in guile 1.8 > however, so while some systems only have guile 2.0 (Fedora) and others > only have guile 1.8 (Debian stable) I would need something more. Just as an aside... Fedora doesn't have Guile 2.0 at all, excep

Re: More Guile 1.8 code failing in 2.x

2013-02-27 Thread Stefan Israelsson Tampe
Can you wrap the code in a cond-expand form no? /Stefan

Re: More Guile 1.8 code failing in 2.x

2013-02-27 Thread Richard Shann
On Wed, 2013-02-27 at 08:19 -0500, m...@markwitmer.com wrote: > Richard Shann writes: > > > 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)) > >

Re: More Guile 1.8 code failing in 2.x

2013-02-27 Thread mark
Richard Shann writes: > 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 > ea

Fwd: Re: Introducing Upmf

2013-02-27 Thread Aljosha Papsch
-BEGIN PGP SIGNED MESSAGE- Hash: SHA256 I forgot to choose "reply all". - Original-Nachricht Von: Aljosha Papsch Gesendet: Wed Feb 27 09:45:28 MEZ 2013 An: l...@gnu.org Betreff: Re: Introducing Upmf l...@gnu.org schrieb: >Hello! > >Aljosha Papsch skribis: > >> I wo

More Guile 1.8 code failing in 2.x

2013-02-27 Thread Richard Shann
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 i