This is the mail archive of the guile@cygnus.com mailing list for the guile project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

structs called by reference only



While trying to wrap ncurses, I wonder if it is necessary to define the struct
WINDOW as scheme object. The library functions themselves only call and return
pointers to WINDOW -objects. My first approach is to hide that struct from
the interface at all and just cast pointers into integers and back before
applying libguile's conversion functions, or let g-wrap do that for me.
But I know that the SCM-ncurses-interface of J.Leveling creates windows as
 scheme objects. So is there a flaw in the former naive approach which hides
 structs that are called by reference only from the interface-file ?  

Klaus Schilling