unofficial mirror of guile-devel@gnu.org 
 help / color / mirror / Atom feed
From: Neil Jerram <neil@ossau.uklinux.net>
Cc: guile-devel@gnu.org
Subject: Re: scm_make_gsubr question
Date: 19 Jan 2003 23:55:23 +0000	[thread overview]
Message-ID: <m31y38oftg.fsf@laruns.ossau.uklinux.net> (raw)
In-Reply-To: <20030119204023.GA22802@masanjin.net>

>>>>> "William" == William Morgan <wmorgan@masanjin.net> writes:

    William> Is there a way to specify, at the time you call
    William> scm_make_gsubr, a user data parameter which is passed to
    William> the corresponding C function? [...]

This has just been discussed on guile-user - please see the archives
there.  (Summary: (i) no (ii) you could use an applicable smob (iii)
description of a roundabout way of achieving the same thing.)

    William> If not, I would like to submit a patch...

Please do so; however, here is my view of why we don't already have
this (and which may amount to a good reason not to add it - I don't
know).

- The corresponding operation on the Scheme level is achieved much
  more elegantly by closure.

- There are ways of achieving this on the C level, even if they are a
  little indirect.  (See thread in guile-user.)

- The most sensible approach IMO for a Guile-based application is to
  do the minimum possible in C for the maximum benefit in Scheme.

Best regards,
        Neil



_______________________________________________
Guile-devel mailing list
Guile-devel@gnu.org
http://mail.gnu.org/mailman/listinfo/guile-devel


  reply	other threads:[~2003-01-19 23:55 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2003-01-19 20:40 scm_make_gsubr question William Morgan
2003-01-19 23:55 ` Neil Jerram [this message]
2003-01-20  8:24   ` Rob Browning
2003-01-20  8:58     ` Marius Vollmer
2003-01-20  9:00   ` Mikael Djurfeldt
2003-01-20 19:07     ` William Morgan
2003-01-20 20:03       ` Mikael Djurfeldt
2003-02-02 22:55     ` Dale P. Smith
2003-01-21 15:04 ` Marius Vollmer

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=m31y38oftg.fsf@laruns.ossau.uklinux.net \
    --to=neil@ossau.uklinux.net \
    --cc=guile-devel@gnu.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).