Forum Navigation
You need to log in to create posts and topics.

Translation Help - Minus Sign?

Posted by: Info <Info@...>

Take following FB syntax:

dim X as UniChar
long if ( X > 0 ) and ( X < 100 )
...
end if

The FBtoC translator produces:

UniChar X;
if ( (-(X > 0)) & ( -(X < 100) ) )
{
...
}

Could somebody please explain the "-" minus sign in this situation? Or
should it simply be amended by hand to say:

UniChar X;
if ( ( X > 0 ) && ( X < 100 ) )
{
...
}

Have read about ObjectiveC and the "methods" which is denoted using the "-"
minus sign but cannot understand the meaning in the above line? Do not fully
understand ObjectiveC syntax as yet, but this minus sign is really
confusing.

Any hints would be appreciated.