From: Andy Wingo <wingo@pobox.com>
To: Mark H Weaver <mhw@netris.org>
Cc: guile-devel@gnu.org
Subject: Re: When to use SCM_DEFINE vs SCM_GPROC vs SCM_PRIMITIVE_GENERIC?
Date: Sat, 29 Jan 2011 18:17:04 +0100 [thread overview]
Message-ID: <m38vy34okv.fsf@unquote.localdomain> (raw)
In-Reply-To: <87sjwb3eik.fsf@yeeloong.netris.org> (Mark H. Weaver's message of "Sat, 29 Jan 2011 10:39:47 -0500")
On Sat 29 Jan 2011 16:39, Mark H Weaver <mhw@netris.org> writes:
> Andy Wingo <wingo@pobox.com> writes:
>> And I don't recall the practical difference between GPROC and
>> PRIMITIVE_GENERIC.
>
> I found the answer. According to a commit message by Mikael Djurfeldt
> in 2003, all uses of SCM_GPROC should be converted to use
> SCM_PRIMITIVE_GENERIC.
>
> http://blog.gmane.org/gmane.lisp.guile.cvs/month=20030301
>
> I will do this for all extensible functions in numbers.c. I will also
> make some other numeric functions extensible. For example, it occurs to
> me if we make `inf?', `nan?', and `finite?' extensible, then users will
> be able to easily extend them to handle non-real complex values, if
> desired.
Sounds great to me. Thanks for doing the archeology!
Andy
--
http://wingolog.org/
prev parent reply other threads:[~2011-01-29 17:17 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2011-01-28 0:47 When to use SCM_DEFINE vs SCM_GPROC vs SCM_PRIMITIVE_GENERIC? Mark H Weaver
2011-01-28 14:37 ` Andy Wingo
2011-01-29 15:39 ` Mark H Weaver
2011-01-29 17:17 ` Andy Wingo [this message]
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=m38vy34okv.fsf@unquote.localdomain \
--to=wingo@pobox.com \
--cc=guile-devel@gnu.org \
--cc=mhw@netris.org \
/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).