From: Christian Szegedy Date: 2003-06-10T18:43:53+09:00 Subject: Re: Ruby-SWIG question: wrapping function objects with blocks Simon Strandgaard wrote: >>>On Thu, 05 Jun 2003 17:07:03 +0200, Christian Szegedy wrote: >>> >>> >>>>In out project, there are a lot of functions which >>>>take a function object parameter (Apply) >>>>and call then may call the call method of this >>>>object. I would like to wrap it with a Ruby code >>>>which takes a block and the creates a new apply >>>>object whose call function calls the block. > > > OK.. I did it without SWIG.. tell me if you can use it ? > Sorry for the long delay, I was on holiday. Of course, I would have had no problem to do this without SWIG, but I have a project in which we wrap everything with SWIG, and we really have a large number of functions that take exactly one function object as the last parameter, so I need an automatic way to wrap them (pereferably with typemaps). Best Regards, Christian