guile-user
[Top][All Lists]
Advanced

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

Re: Accessing multiple values from C


From: Andy Wingo
Subject: Re: Accessing multiple values from C
Date: Wed, 18 Jan 2012 17:20:03 +0100
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/23.3 (gnu/linux)

On Wed 18 Jan 2012 04:15, Mark H Weaver <address@hidden> writes:

> Should this verify that `obj' is a values object?
>
> Should it verify that `idx' can fit in an inum?

Agreed!

> Also, if `obj' is _not_ a values object and `idx' is 0, should this
> simply return `obj'?  Since a single value is conceptually no different
> than multiple values (but is represented very differently within Guile),
> I'd think that this function should handle that case gracefully.

Hum, good question.  I'm inclined to agree.

Regards,

Andy
-- 
http://wingolog.org/



reply via email to

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