[prev in list] [next in list] [prev in thread] [next in thread] 

List:       pykde
Subject:    [PyKDE] How to do operators with SIP
From:       "Ewald R. de Wit" <erdewit () zonnet ! nl>
Date:       2001-10-28 11:57:52
[Download RAW message or body]

Hi,

Does anyone here know how to convert C++ operators like +, *, / etc
using SIP? Suppose I have a class called Matrix that has + defined for
it in C++, what would the SIP code look like?

Supposedly something like this:

------------------------
PyNumberMethods:
        __add__
%MemberCode

	... stuff ...

%End
------------------------

but I can't find out how to do the 'stuff' part.

Thanks very much,

-- 
  --  Ewald




[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic