<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2//EN">
<HTML>
<HEAD>
<META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=iso-8859-1">
<META NAME="Generator" CONTENT="MS Exchange Server version 6.5.7623.0">
<TITLE>RE: [IronPython] Overloads</TITLE>
</HEAD>
<BODY>
<!-- Converted from text/plain format -->

<P><FONT SIZE=2>One more thing. Random.Next is a good example to play with the overload method selection, but there is no need to do that. IronPython will resolve most cases automatically and the method selection is in place to handle the cases where IronPython doesn't seem to be doing the right thing. And we want to hear about those cases because they may be caused by the defficiency of the method resolution algorithm.</FONT></P>

<P><FONT SIZE=2>Thanks again and I hope this works for you.</FONT>
</P>

<P><FONT SIZE=2>Martin</FONT>
</P>

<P><FONT SIZE=2>________________________________________</FONT>

<BR><FONT SIZE=2>From: Jonathan Jacobs</FONT>

<BR><FONT SIZE=2>Sent: 8/3/2005 12:31 AM</FONT>

<BR><FONT SIZE=2>To: users-ironpython.com@lists.ironpython.com</FONT>

<BR><FONT SIZE=2>Cc:</FONT>

<BR><FONT SIZE=2>Subject: [IronPython] Overloads</FONT>
</P>

<P><FONT SIZE=2>Hi,</FONT>
</P>

<P><FONT SIZE=2>I'm pleased to see 0.9 is out and the thank you message. :-)</FONT>
</P>

<P><FONT SIZE=2>Hopefully I'm just being stupid about this, but I can't seem to get this</FONT>

<BR><FONT SIZE=2>overload story to behave:</FONT>
</P>

<P><FONT SIZE=2>&gt;&gt;&gt; System.Random.Next</FONT>

<BR><FONT SIZE=2>&lt;method# Next on System.Random&gt;</FONT>

<BR><FONT SIZE=2>&gt;&gt;&gt; print System.Random.Next.__doc__</FONT>

<BR><FONT SIZE=2>int Next()</FONT>

<BR><FONT SIZE=2>int Next(int, int)</FONT>

<BR><FONT SIZE=2>int Next(int)</FONT>

<BR><FONT SIZE=2>&gt;&gt;&gt; print System.Random.Next[int].__doc__</FONT>

<BR><FONT SIZE=2>int Next(int)</FONT>

<BR><FONT SIZE=2>&gt;&gt;&gt; System.Random.Next[int](5)</FONT>

<BR><FONT SIZE=2>IronPython.Objects.PythonValueError: Bad args for the method &lt;method#</FONT>

<BR><FONT SIZE=2>Next on System.Random&gt;</FONT>

<BR><FONT SIZE=2>&nbsp;&nbsp; at input_8.Run(Frame frame)</FONT>
</P>

<P><FONT SIZE=2>Any suggestions are most welcome.</FONT>
</P>

<P><FONT SIZE=2>--</FONT>

<BR><FONT SIZE=2>Jonathan</FONT>

<BR><FONT SIZE=2>_______________________________________________</FONT>

<BR><FONT SIZE=2>users-ironpython.com mailing list</FONT>

<BR><FONT SIZE=2>users-ironpython.com@lists.ironpython.com</FONT>

<BR><FONT SIZE=2><A HREF="http://lists.ironpython.com/listinfo.cgi/users-ironpython.com">http://lists.ironpython.com/listinfo.cgi/users-ironpython.com</A></FONT>
</P>

</BODY>
</HTML>