Keith J. Farmer wrote:
I didn't see a second set of square brackets.  Also, what if what you
have is an indexer, in which case the parameter is supplied also with
square brackets?

Then you have a lot of square brackets? ;-)

Of course it's not very pretty.  Do you have a suggestion that addresses
my concern?

Well, what I meant was that you'd first determine your generic type, then you'd determine which overload, i.e.:

result = MyGenericFunction[int][int, str](1, "hi")

or if it makes it more clear:

func = MyGenericFunction[int]
result = func[int, str](1, "hi")

Of course, I'm just guessing.

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

Reply via email to