On Feb 1, 2008 7:55 PM, Will Farr <[EMAIL PROTECTED]> wrote:
> Hi Kon,
>
>
> would be expensive.  You must create a closure, cons up a rest list,
> and I bet that apply uses some C varargs magic that probably is much
> slower than a straight function call.

Something like that, yes.

> But, how hard would it be to
> specify a re-write rule which takes effect after CPS conversion which
> transforms
>
> (##sys#values k v1 ...)
>
> into
>
> (k v1 ...)
>

The "k" above is an "internal" procedure that is not the same as
a normal user procedure or one created by "call/cc", unfortunately.
It is also not possible (without static whole-world analysis) to infer
whether "k" actually is a multival continuation.


cheers,
felix


_______________________________________________
Chicken-users mailing list
Chicken-users@nongnu.org
http://lists.nongnu.org/mailman/listinfo/chicken-users

Reply via email to