RE: [IronPython] Generics support in IronPython

2005-04-06 Thread Jim Hugunin
-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

RE: [IronPython] Generics support in IronPython

2005-04-01 Thread Keith J. Farmer
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

RE: [IronPython] Generics support in IronPython

2005-04-01 Thread Jim Hugunin
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

[IronPython] Generics support in IronPython

2005-04-01 Thread Martin Smith
Hi, Will IronPython support generics? Also, is support for calling python code from other CLR languages scoped for 1.0? It would be a particularly useful to be able to call compiled python code from C#, or, even better, extend python classes in C#. Keep up the great work. I'm looking forward t