On Apr 2, 2009, at 12:38 AM, Norman Palardy wrote:


On 1-Apr-09, at 9:38 PM, Bob Delaney wrote:

fp Plugin brings my multi-precision engine, fp, to REALbasic. I've just upgraded the plugin so that BigIntegers can mix with the types INT64 and UINT64 in arithmetic operations and comparisons, just as Doubles and Integers already do. This appears to work OK. But when I use OPERATOR_CONVERT to convert a UINT64 to a BigInteger by:

{ (REALproc) convertUINT64ToBigInt, REALnoImplementation, "Operator_Convert(x As UINT64)" },

the plugin compiles with no errors, but in code like this:

Dim x As UINT64
Dim z As BigInteger
x = 2
z = x
.
.

upon Run I get the error message for the "z = x" line that "there are multiple items with this name", etc.

I have no problem using OPERATOR_CONVERT to convert a Double to a BigInteger or a BigInteger to a Double, so why is there a problem with UINT64?

D you have other operator_converts that could be used ?

I believe that if you have a operator_convert(double) and operator_convert(integer) that you'll see this even in plain RB code because both are possible when you have code like you showed. It's ambiguous as to which you mean to use


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

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