- From: bryan cole <bryan.cole_at_teraview.com>
- Date: Thu, 25 Mar 2004 10:48:52 +0000
> > > > This way swig takes care of the renaming and it works for all wrapping > > languages. > > That works for renaming, but it doesn't make the renamed method an > instance method of SWIG::TYPE_p_comedi_t. I see. You want a Comedi object. I think you can also do this with SWIG using the %extend directive but .... > > Nor I. I think the right way to do it would be to start with an empty > interface file and write a custom typemap, with exception handler if > appropriate, for every comedilib function. It'd be a nice exercise in XP > (write the tests first, do one function at a time), but I don't think > I'll have time for it. ... this is all beginning to sound a bit like hard work (although agree it'd be neat). I like the simplicity of the current approach to wrapping the core functions, as it makes the wrappers trivial to maintain. > For now, the core functionality is there in at least two scripting > languages. This suits me. cheers, Bryan -- Bryan Cole Teraview Ltd., 302-304 Cambridge Science Park, Milton Road, Cambridge CB4 0WG, United Kingdom. tel: +44 (1223) 435380 / 435386 (direct-dial) fax: +44 (1223) 435382
Received on 2004-03-25Z10:48:52