unofficial mirror of guile-devel@gnu.org 
 help / color / mirror / Atom feed
From: Tristan Colgate <tcolgate@gmail.com>
To: guile-devel@gnu.org
Subject: procedure->pointer bug
Date: Tue, 29 Mar 2011 15:27:32 +0100	[thread overview]
Message-ID: <AANLkTimAogbqDjsV2PEB+sSBJ4VCsDqamtqXoRce44z7@mail.gmail.com> (raw)

Hi,

  Think I found a problem with void returns for pointer->procedure,
the following gives a segfault...

(use-modules (system foreign))

(define (myproc)
 (display "hello")(newline))

((pointer->procedure
  void
  (procedure->pointer void myproc '())
  '()))


replacing the void returns with an int gives the correct behaviour.

-- 
Tristan Colgate-McFarlane
----
  "You can get all your daily vitamins from 52 pints of guiness, and a
glass of milk"



             reply	other threads:[~2011-03-29 14:27 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-03-29 14:27 Tristan Colgate [this message]
2011-03-29 21:36 ` procedure->pointer bug Ludovic Courtès

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=AANLkTimAogbqDjsV2PEB+sSBJ4VCsDqamtqXoRce44z7@mail.gmail.com \
    --to=tcolgate@gmail.com \
    --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).