[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: peval & let-values
From: |
Andy Wingo |
Subject: |
Re: peval & let-values |
Date: |
Wed, 21 Sep 2011 19:54:07 +0200 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/23.3 (gnu/linux) |
Hi,
On Wed 21 Sep 2011 15:28, address@hidden (Ludovic Courtès) writes:
> Andy Wingo <address@hidden> 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/