From: Mark H Weaver <mhw@netris.org>
To: marco.maggi-ipsu@poste.it
Cc: guile-user@gnu.org, "Niels Möller" <nisse@lysator.liu.se>
Subject: Re: Question on mutability of argument lists
Date: Wed, 19 Mar 2014 15:25:41 -0400 [thread overview]
Message-ID: <87txauouru.fsf@yeeloong.lan> (raw)
In-Reply-To: <874n2unmvo.fsf@governatore.luna> (Marco Maggi's message of "Wed, 19 Mar 2014 18:01:31 +0100")
Marco Maggi <marco.maggi-ipsu@poste.it> writes:
> Niels Möller wrote:
>> However, for a natural implementation which evaluates
>> arguments and conses the results up to a list, this seems
>> to require an extra copy of the argument list, after all
>> values are evaluated and before the list is bound to the
>> rest parameter.
>
> Yes, but it depends on what is "natural" for you. In
> Vicare, when calling a Scheme function, all the arguments
> are pushed on the Scheme stack segment (similar to calling a
> C function) and then the function is called; the callee
> takes the leftover arguments and puts them into a newly
> allocated list.
Indeed, and Guile 2 also does this in compiled code.
Mark
next prev parent reply other threads:[~2014-03-19 19:25 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2014-03-19 9:34 Question on mutability of argument lists Niels Möller
2014-03-19 17:01 ` Marco Maggi
2014-03-19 19:25 ` Mark H Weaver [this message]
2014-03-19 19:56 ` Niels Möller
2014-03-20 10:06 ` [OT] " Marco Maggi
2014-03-20 10:54 ` Niels Möller
2014-03-20 21:02 ` Andy Wingo
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
List information: https://www.gnu.org/software/guile/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=87txauouru.fsf@yeeloong.lan \
--to=mhw@netris.org \
--cc=guile-user@gnu.org \
--cc=marco.maggi-ipsu@poste.it \
--cc=nisse@lysator.liu.se \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).