Python from Wise Guy's Viewpoint
Jon S. Anthony
j-anthony at rcn.com
Sat Oct 25 15:15:35 EDT 2003
gt5163b at prism.gatech.edu (Brian McNamara!) writes:
> boost::tuple to then generalize things. (Indeed, using such libraries,
> you can simulate "apply" rather convincingly. But somewhere under the
> hood, someone has to have written N different overloads for 0-arg,
> 1-arg, ... N-arg, up to some fixed ("large enough") N.)
That's not actually good enough. You also have to have overloads for
all the possible types for 1-arg, ..., N-arg. Actually it's worse
than that - the set of types is not closed, so even in principle this
won't work.
/Jon
More information about the Python-list
mailing list