-Jim
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Keith J. Farmer
Sent: Friday, April 01, 2005 6:39 PM
To: Discussion of IronPython
Subject: RE: [IronPython] Generics support in IronPython
So that shows consumption -- is creation supported?
Very
So that shows consumption -- is creation supported?
Very cool
From: [EMAIL PROTECTED] on behalf of Jim Hugunin
Sent: Fri 4/1/2005 5:17 PM
To: Martin Smith; users-ironpython.com@lists.ironpython.com
Subject: RE: [IronPython] Generics support in IronPython
Martin Smith wrote:
> Will IronPython support generics?
Here's the short answer to your question:
>>> from System.Collections.Generic import *
>>> l = List[str]()
>>> l.Add('hi')
>>> list(l)
['hi']
>>> l.Add(42)
System.Exception: bad args to this method
This works today and creates a List. All