SWIG 4 D2 How To : namespace, friend, operator()

Jimmy Cao jcao219 at gmail.com
Sun Dec 12 16:20:55 PST 2010


On Sun, Dec 12, 2010 at 2:13 PM, BLS <windevguy at hotmail.de> wrote:

>
> Last question is about  : operator()
>
> f.i.    bool operator()(HWND const a, const HWND b) const
>
> Klickverbot suggests to use the SWIG's %rename. But how that would look
> like in practice ?
>
> Beside, I guess this is what opImplicitCast should solve. maybe alias this
> could help somehow .. dunno.
>
> Thanks in advance..
> Bjoern
>
>
I think you can do this:
%rename(_call)  *::operator();


Currently Klickverbot is working on support for operator overloading
wrappers.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.puremagic.com/pipermail/digitalmars-d/attachments/20101212/f4613f74/attachment-0001.html>


More information about the Digitalmars-d mailing list