Hi,

Most type wrapping/unwrapping methods that are used within Guile are not
exposed to the user, which is a pity.  For example, `scm_addr_vector'
(in socket.c) which converts a `sockaddr' structure to its Scheme
representation (a vector) is defined as `static'.  This leaves the C
programmer with the following alternative:

* use, e.g., `scm_connect ()' instead of `connect ()' in its C code;

* define a new SMOB (or other representation) for `sockaddr' that may be
  incompatible with Guile's representation of this C type;

* copy/paste Guile's conversion methods, hoping that they're going to
  remain valid.


Obviously, the best solution would be to expose the relevant functions
to the user.  :-)

What do you think?

Thanks,
Ludovic.


_______________________________________________
Guile-user mailing list
Guile-user@gnu.org
http://lists.gnu.org/mailman/listinfo/guile-user

Reply via email to