[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Scheme-reports] practical matters - CSAN



On Mon 29 Aug 2011 18:59, John Cowan <cowan@x> 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@x
http://lists.scheme-reports.org/cgi-bin/mailman/listinfo/scheme-reports