This is the mail archive of the
guile@sourceware.cygnus.com
mailing list for the Guile project.
Re: Names in libguile
- To: Mikael Djurfeldt <djurfeldt at nada dot kth dot se>
- Subject: Re: Names in libguile
- From: "Greg J. Badros" <gjb at cs dot washington dot edu>
- Date: 17 Mar 2000 08:37:19 -0800
- Cc: guile at sourceware dot cygnus dot com
- References: <E12VeE6-0004Sb-00@mdj.nada.kth.se>
All of these notes should be summarized and stuck in a file in the
guile-core module (and updated).
One of my pet peeves is that macros ending in P are predicates that
evaluate to a C boolean, gh_foo_p()s are predicate functions that also
return C booleans, but scm_foo_p()s are primitives that return SCM
booleans. There is a funny interaction that I don't like, there. I'm
not sure that there's any solid way to fix this since there's already a
lot of code that relies on the gh_ interface. The void* patch will help
catch these bugs, but the distinction should at least be made very clear
up-front in developer docs for Guile if we can't figure out a
backward-compatible reasonable solution.
Greg