Hi,

On Wed 21 Sep 2011 15:28, [email protected] (Ludovic Courtès) writes:

> Andy Wingo <[email protected]> skribis:
>
>> (let ((x 0))
>>   (call-with-values
>>       (lambda () (if (zero? x) (values 1 2) (values 3 4)))
>>     (lambda (a b)
>>       (+ a b))))
>> => 3
>
> This example doesn’t seem to work as is, presumably because
> ‘call-with-values’ doesn’t get “primitivized”:

It does work at the REPL however, as primitives are resolved and
expanded before `peval' is run.

Andy
-- 
http://wingolog.org/

Reply via email to