On 10/12/2010 01:27, klickverbot wrote:
Regarding your specific problem: Generally speaking, operator overloading is WIP (hopefully I find time to implement it for D2 during the weekend), but implicit conversions can't really be mapped to D anyway, so just use the %rename directive of SWIG to map the implicit conversion operator to a regular member function like »asHwnd()«.
Using the %rename directive sound reasonable... I'll give it a try. thanks, bjoern