[Top][All Lists]

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

Re: GIT version: values writing

From: Ludovic Courtès
Subject: Re: GIT version: values writing
Date: Thu, 20 Jan 2011 16:16:33 +0100
User-agent: Gnus/5.110011 (No Gnus v0.11) Emacs/23.2 (gnu/linux)

Hi Hans,

Hans Aberg <address@hidden> writes:

> There seems to be a bug in GIT version when writing the 'values' data
> type.
>   (list 2 (values 3 4) 5)
>   $1 = (2 3 5)

This behavior is correct: in Guile 1.9, multiple-value returns are
truncated any time the continuation expects fewer values.

Here, the ‘values’ call returns 3 values, but the location where it’s
called expects only 1, hence the automatic truncation.

> with the value 4 lost In guile-1.8.8, it would write
>   (2 #<values 3 4> 5)

The special “values” type in older Guile versions was an artifact of
Guile’s implementation of multiple value support; objects of that type
are normally invisible to user code, but they would show up in such
situations (R5RS doesn’t specify what to do in these cases, so it was
valid, but implementation-specific behavior.)


reply via email to

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