[C++-sig] tuple, list, dict, et. al
Niki Spahiev
niki at vintech.bg
Wed Jun 26 14:41:23 CEST 2002
David Abrahams wrote:
> Question:
>
> What should that mean in terms of overload resolution?
>
> Answer 1:
>
> The function only matches if the actual argument is a Python
> tuple or a subclass of tuple
>
> Answer 2:
>
> The function matches if the actual argument is any Python sequence;
> tuple(arg) will be applied to retrieve the tuple object used inside
> the wrapped function
When i start with pure python prototype all functions behave like Answer
2. If later some of them are replaced with C++ code i expect it to
behave the same.
Niki Spahiev
More information about the Cplusplus-sig
mailing list