That is a good suggestion. The initial look shows that it would be quite possible to implement it. I'll give it a try.
Martin -----Original Message----- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Richard Monson-Haefel Sent: Tuesday, April 19, 2005 6:29 PM To: Discussion of IronPython Subject: Re: [IronPython] Questions for FAQ or User Guide It might be better if IronPython auto converted the list of real number to an array in this case. If, that is, all the types in the list can be widened to the correct type, or if the parameter is an array of objects. That way you don't have to call an explicit method to set the list to an array of Double types. The reason, I think this is important, is that in Python developers will avoid explicit typed of arrays in favor of loose typed lists because its more Pythonic. Since interaction with general purpose languages (strongly typed) will require more strict typing, the interpreter or compiler should make that transformation (from List to array of doubles) implicitly, or if it can't be done throw an exception. Otherwise, you are forcing IronPython developers to adhere to strict typing whenever they script interactions of objects defined by general purpose languages like C#. richard _______________________________________________ users-ironpython.com mailing list users-ironpython.com@lists.ironpython.com http://lists.ironpython.com/listinfo.cgi/users-ironpython.com