This is the mail archive of the guile@sourceware.cygnus.com mailing list for the Guile project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Re: Inconsistant Results


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

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]