This is the mail archive of the
guile@sourceware.cygnus.com
mailing list for the Guile project.
Re: Inconsistant Results
- To: Dirk Herrmann <dirk at ida dot ing dot tu-bs dot de>
- Subject: Re: Inconsistant Results
- From: Mikael Djurfeldt <mdj at mdj dot nada dot kth dot se>
- Date: 22 Jun 2000 17:39:58 +0200
- Cc: Jim Blandy <jimb at savonarola dot red-bean dot com>, Guile Mailing List <guile at sourceware dot cygnus dot com>
- Cc: djurfeldt at nada dot kth dot se
- References: <Pine.LNX.4.21.0006221148290.10395-100000@marvin.ida.ing.tu-bs.de>
Dirk Herrmann <dirk@ida.ing.tu-bs.de> writes:
> I tried this, but it does not solve the problem:
>
> guile> (define-module (my-module)
> ... :use-syntax (ice-9 syncase))
> #<directory (my-module) 42b00>
> guile> (define (f a b c) (a b c))
> guile> (procedure-source f)
> (lambda (a b c) (a b c))
> guile> (f and #f #f)
> #f
> guile> (procedure-source f)
> (lambda (a b c) (and b c))
>
> What am I doing wrong here?
This is a bug.
It seems like
(global-extend 'and 'and '())
and some similar lines for or, cond etc are missing in psyntax.ss.
(If we change this, we need to recompile psyntax.pp.)