|
There is a syntax for
selecting the overload. However, I didn’t mention it because we want to
achieve state where the automatic binding we have satisfies most uses. More
importantly, the selection mechanism may change in the near future. Having said that,
yes, it is possible to select the very overload by using the square bracket
syntax. However, this may change during our beta cycles so try to not depend on
it too much. Martin >>> from
System import Console >>>
Console.Write(3) 3>>>
Console.Write[str](3) Traceback (most
recent call last): File , line 0,
in input##2 TypeError: bad args
to this method <method# Write on System.Console> >>> From:
[EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of J. Merrill Isn't there a syntax (using []) by which you can tell IP explicitly
which one it should use? I was expecting you to say what you did, but to
add info about that as well. Yes, it will work on
.NET. IronPython will try to find the best fit among the overloads based on
types of arguments that you pass to the method call. There may be cases when
IronPython may not choose the right method & and we want to hear about
those cases so we can fix them. From:
[EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
On Behalf Of Fabio
|
_______________________________________________ users mailing list [email protected] http://lists.ironpython.com/listinfo.cgi/users-ironpython.com
