|
From: Petr N. <Pet...@am...> - 2006-10-26 07:31:36
|
> From: William S Fulton [mailto:ws...@fu...]=0D > Sent: 25 October 2006 22:03 >=0D > John Lenz wrote: > > On 10/23/06 10:45, Petr Novotny wrote: > >> Hi, > >> [snip] > > No, the newfree typemap is for freeing temporary memory=0D > created during > > the typemap, that is used to build the real return value. =0D > No, the newfree typemap is only used when %newobject is used. The > freearg typemap is used to freeing up temporary memory created during > the in typemap. Let me see if I understand this well. %newobject means two things,= depending on typemaps: 1. newfree typemap is invoked, if defined. 2. The pointer is wrapped with SWIG_OWNER flag, if it is wrapped. Am I right? [snip] You say that the documentation is correct. You may be right, but the= problem here is that the documentation is misleading. I think it should be= more explicit about what %newobject means. Thanks, -- Petr Novotn=FD Prague Development Center, AMDOCS +420266773112, +420608711517 "First Law of Bad Management: If something isn't working, do more of it." -= Tom DeMarco=0D This message and the information contained herein is proprietary and= confidential and subject to the Amdocs policy statement, you may review at http://www.amdocs.com/email_disclaimer.asp |