source code size metric: Python and modern C++
David Abrahams
dave at boost-consulting.com
Tue Dec 3 18:22:14 EST 2002
Brian Quinlan <brian at sweetapp.com> writes:
>> The comment above says it all. Arity means "number of arguments" in
>> case you didn't know. The limit on the number of parameters to a
>> function is actually bounded by some internal limit in your compiler,
>> which is required to be documented. So in practice, you can only go
>> that high.
>
> Thanks, I didn't know that. It still sucks though:
>
> add<int, float, int, int, long, int, long, long>(a, b, c, d, e, f, g, h)
>
> Seems less convenient than:
>
> add(a, b, c, d, e, f, g, h)
Why would you ever write out all the template parameters??
add<int>(a, b, c, d, e, f, g, h)
was all I was proposing, where int is the return type.
I'll get back to you later on the rest.
--
David Abrahams
dave at boost-consulting.com * http://www.boost-consulting.com
Boost support, enhancements, training, and commercial distribution
More information about the Python-list
mailing list