guile-user
[Top][All Lists]
Advanced

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

Re: Multiple values passed as single argument to procedure


From: Mark H Weaver
Subject: Re: Multiple values passed as single argument to procedure
Date: Mon, 12 Jun 2017 07:31:34 -0400
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/25.2 (gnu/linux)

I'm sorry David, but _everything_ that you wrote below is incorrect.

David Kastrup <address@hidden> writes:

> Chris Marusich <address@hidden> writes:
>
>> I think I'm missing something here.  In (list (f)), the call to f
>> certainly looks like it's happening at a position that one might
>> intuitively call a "tail" position.
>
> It is,

No it isn't.

> but list does not take multiple values

Yes it does.  'list' accepts an arbitrary number of values (arguments).

> and thus discards additional values returned by f.

'list' does not discard anything.  The additional values are discarded
before 'list' is called.

> If list were a procedure/continuation accepting multiple values,

See above.

> would likely work as you expected.

It would not work as Chris expected no matter what procedure was called.

I will try to clarify all of this in another message.

      Mark



reply via email to

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