On Mon, 2 Oct 2000, Dan Sugalski wrote:

> At 10:15 PM 10/1/00 -0700, Rob Tanner wrote:
> >Is there a good heavy duty typemap reference available either on the net 
> >or at the bookstore?  Or barring that, can someone tell me what the 
> >appropriate macro is for a struct ** type value?
> 
> While it's probably not what you wanted to hear, I find that after a 
> certain level of complexity (basically if you move past the basics of long, 
> char *, double, and void *) it's better to do all the work by hand. Not 
> particularly fun, but you'll find yourself fighting typemaps and odd 
> boundary cases otherwise.
> 

- I'd second this opinion. Often when you have complicted structs in C
you can simplify the whole deal in Perl. For things like this I think
it's worthwhile to spend some time thinking about how the perl
interface should work, rather than blindly copying the C one. 

- Booker C. Bense 

Reply via email to