Re: about `smob' generated by swig

2007-03-28 Thread William Xu
Marco Maggi [EMAIL PROTECTED] writes: William Xu wrote: Swig could generate pointer types in C to smob. But users still have to define smob related operations(like mark, free, etc) by hand? Mh, no. I have never used SWIG but if I read [1] and [2] and by inspecting

Re: about `smob' generated by swig

2007-03-28 Thread Marco Maggi
William Xu wrote: Yes, it's more like a smob type pointer. Consider this, void bar(unsigned char *s) { printf(s = %s\n, s); } One problem is that how i create and pass a `unsigned char*' parameter to `bar'. If SWIG requires me to write smob creation myself, that's a

Re: about `smob' generated by swig

2007-03-27 Thread Marco Maggi
William Xu wrote: Swig could generate pointer types in C to smob. But users still have to define smob related operations(like mark, free, etc) by hand? Mh, no. I have never used SWIG but if I read [1] and [2] and by inspecting Examples/guile in the source distribution of

about `smob' generated by swig

2007-03-26 Thread William Xu
Hi, Swig could generate pointer types in C to smob. But users still have to define smob related operations(like mark, free, etc) by hand? -- William It was a JOKE!! Get it?? I was receiving messages from DAVID LETTERMAN!! YOW!! ___ Guile-user