How would you specify:
 
T4 Foo<T1, T2>(T1, T3)
T4 Foo<T1, T2, T3>()
T4 Foo<T1, T2>(T3) 
T4 Foo<T1>(T2, T3)
T4 Foo(T1, T2, T3)
 
...? In other words, generic methods with overloads.  I'm pretty sure this is 
legal, but I don't have 2k5 in front of me to check.
 
I think you may need to add something to specify this, eg:
 
Foo[T1, T2 | T1, T3](x1, x3)
Foo[T1, T2, T3]()
Foo[T1, T2 | T3](x3)
Foo[T1 | T2, T3](x2, x3)
Foo[ | T1, T2, T3](x1, x2, x3)
 
________________________________

From: [EMAIL PROTECTED] on behalf of Martin Maly
Sent: Tue 7/19/2005 2:45 PM


>>> Console.WriteLine[str]("Hi")
Hi
>>> Console.WriteLine[Single](3.5)
3.5
>>> Console.WriteLine[int]("Hi")
IronPython.Objects.PythonValueError: Bad args for the method <method#
WriteLine on System.Console>
>>> print Console.WriteLine[UInt64].__doc__
System.Void WriteLine(System.UInt64)


<<winmail.dat>>

_______________________________________________
users-ironpython.com mailing list
users-ironpython.com@lists.ironpython.com
http://lists.ironpython.com/listinfo.cgi/users-ironpython.com

Reply via email to