source code size metric: Python and modern C++
Brian Quinlan
brian at sweetapp.com
Tue Dec 3 14:20:02 EST 2002
David Abrahams wrote:
> The type-safe version could easily look like this instead:
>
> ServerProxy
s("http://www.sweetapp.com/cgi-bin/xmlrpc-test/rpc1.py");
> int result = s.call_method<int>("add", 2, 3);
>
> That's not too bad.
You can only do this in the special case where all the arguments and the
result are of the same type. Do I really have to pick another example to
demonstrate this?
Cheers,
Brian
More information about the Python-list
mailing list