manuel-serrano / bigloo

a practical Scheme compiler
http://www-sop.inria.fr/indes/fp/Bigloo
Other
139 stars 20 forks source link

expand doesn't expand letrec #16

Closed davedoesdev closed 5 years ago

davedoesdev commented 5 years ago

If I override letrec (for example with the sample derived form from R6RS), then bigloo gives me a warning:

*** WARNING:bigloo:install-expander
Redefinition of eval expander -- letrec

which tells me letrec is an expander. However, expand doesn't expand letrec:

1:=> (expand '(letrec ((a (lambda () b)) (b (lambda () a))) a))
(letrec ((a (lambda () b)) (b (lambda () a))) a)

Is the warning wrong?

davedoesdev commented 5 years ago

I just disabled the warnings when expanding.