Re: about `smob' generated by swig

2007-03-31 Thread William Xu
"Marco Maggi" <[EMAIL PROTECTED]> writes: > AFAICT you have to write a C constructor: And as well as a C desctructor? Ooh, i thought SWIG can take care of all details for me. Apparently it doesn't. Thanks for your help. -- William We are MicroSoft. You will be assimilated. Resistance is f

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,

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 inspectin

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

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 mai