From: Kostas K. <km...@cc...> - 2006-02-15 08:02:54
|
Josh Cherry wrote: > On Tue, 14 Feb 2006, Charlie Savage wrote: > > >> That's an interesting question. Right now SWIG doesn't really provide >> hooks into the Ruby object creation process. So it depends on what you >> are trying to accomplish, maybe you can provide a bit more info? >> > > There's %feature("ref"). I used this to do for Ruby constructors what I > was doing in Perl and Python with "out" typemaps. This only helps if the > goal is to add code to the creation process rather than replace it, but > perhaps that will help with the original question. > > Josh > > -- > Joshua L. Cherry, Ph.D. > NCBI/NLM/NIH (Contractor) > jc...@nc... > > Yes, that's what i wanted. I was trying merely to add some code in _wrap_new_MyObject wraper. I'll try using 'feature("ref")' , see if it suits. Thanks to everyone for their efforts. |