Re: [Scheme-reports] practical matters - CSAN Andy Wingo (29 Aug 2011 17:34 UTC)
Re: [Scheme-reports] practical matters - CSAN John Cowan (29 Aug 2011 17:54 UTC)

Re: [Scheme-reports] practical matters - CSAN Andy Wingo 29 Aug 2011 17:34 UTC

On Mon 29 Aug 2011 18:59, John Cowan <cowan@mercury.ccil.org> writes:

> A case-lambda can tail-call itself:
>
>         (define x (case-lambda
>           ((a b) ...)
>           ((a) (x a 0))))
>
> A compiler can detect this case and optimize it.

I don't think that this is the case for module-level bindings, unless
something has changed.  Such an optimization would be incorrect if the X
binding could be mutated.

Andy
--
http://wingolog.org/

_______________________________________________
Scheme-reports mailing list
Scheme-reports@scheme-reports.org
http://lists.scheme-reports.org/cgi-bin/mailman/listinfo/scheme-reports