guile-devel
[Top][All Lists]
Advanced

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

procedure->pointer bug


From: Tristan Colgate
Subject: procedure->pointer bug
Date: Tue, 29 Mar 2011 15:27:32 +0100

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 via email to

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