Marius,
still working on this one ... I've been (ab)using the return type to make the selection between the different methods. That's a hack that is not guaranteed to work (as is obvious here).
Can't quite make it to work yet w/o an additional cast being needed on the user/client side (to TPyReturn&) before the final assignment.
This, btw.:
> TypeError: expected string or Unicode object, NoneType found
comes from the attempt from CINT to convert the result to a char* for printing, but the actual method return being None. It'd have to be cast away, which is annoying, so I've put in a check in operator char*().
Best regards,
Wim
-- WLavrijsen_at_lbl.gov -- +1 (510) 486 6411 -- www.lavrijsen.netReceived on Wed Mar 16 2011 - 01:26:58 CET
This archive was generated by hypermail 2.2.0 : Wed Mar 16 2011 - 17:50:01 CET