On Apr 2, 2009, at 2:05 AM, Norman Palardy wrote:


On 2-Apr-09, at 12:01 AM, Bob Delaney wrote:


But for function overloading in C++ the argument type determines the function to be used. Does REALbasic not work the same way?

just write some plain RB code to see this

Class1
   operator_convert(x as integer)
   operator_convert(x as double)

then on push button on a window put

   dim c as Class1 = 6

this should invoke the operator_convert and you'll see it warns in the same way

This is not new - it's been this way for a very long time

I'll confess I don't know why (or maybe it did get discussed at one time and I forget what the discussion was)


And for that case I see why. But for my z=x where x is a UINT64 and there is only one OPERATOR_CONVERT which has a UINT64 as its argument, REALbasic should not have any confusion. Perhaps there's another OPERATOR_CONVERT intrinsic to REALbasic which converts a UINT64 to another type.

Bob


_______________________________________________
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