guile-devel
[Top][All Lists]
Advanced

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

scm_to_pointer vs scm->pointer


From: Andy Wingo
Subject: scm_to_pointer vs scm->pointer
Date: Mon, 02 Jul 2012 23:38:28 +0200
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/23.4 (gnu/linux)

Hello,

scm->pointer takes a Scheme value and returns a Scheme value which is a
foreign pointer to the Scheme value.  It has been in Guile since 2.0 I
think.

scm_to_pointer takes a Scheme value which is a foreign pointer, and
unpacks that foregin pointer as a void*.

scm_to_pointer is a new interface in master that is not in 2.0.5, and
that is inconsistent with scm->pointer / scm_scm_to_pointer.  This
should be fixed.  Otherwise it's impossible to document in any sane
fashion.

Suggestion: change scm_to_pointer to SCM_POINTER_VALUE.  WDYT?

Andy
-- 
http://wingolog.org/



reply via email to

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