[Top][All Lists]

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

Re: GIT version: values

From: Andy Wingo
Subject: Re: GIT version: values
Date: Thu, 27 Jan 2011 10:00:48 +0100
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/23.2 (gnu/linux)

Hi Hans,

On Thu 27 Jan 2011 00:34, Hans Aberg <address@hidden> writes:

>>    If you wish to preserve a potentially
>>    multiply-valued return, you will need to set up a multiple-value
>>    continuation, using `call-with-values'.
> But this is false.

According to the standard, passing an unintended number of values to a
continuation is undefined.  To portably preserve a potentially
multiply-valued return, you need call-with-values.

You can still implement other paradigms on top of this.  If you want to
express some semantics that is not specified in the report, write a
macro that wraps your expressions in call-with-values.  This is
effectively what we will do for Lua, for example.



reply via email to

[Prev in Thread] Current Thread [Next in Thread]