On 09/04/2007, at 6:07 AM, Theodore H. Smith wrote:

> In RB, there is a very silly bug

no more or less silly than any others - did you bother logging a report?

> What happens is that you get things like this:
>
>    class bla
>      function ABC(s as string)
>      function ABC(b as bla)
>      function operator_convert() as string
>    end class
>
>    dim a, b as bla
>    a = new bla
>    b = new bla
>
>    b.ABC( a ) // RB won't like this line!
Which version of RB?  2007r2 works fine for me.


> But there is an operator_convert to a string. So it doesn't know
> which ABC should be called :(

The obvious thing I would expect, based mainly on my C++ experience,  
is that the method involving no conversion is the unambigously  
correct one to call.

Was your rant based on an actual test?
_______________________________________________
Unsubscribe or switch delivery mode:
<http://www.realsoftware.com/support/listmanager/>

Search the archives:
<http://support.realsoftware.com/listarchives/lists.html>

Reply via email to