Translation Help - Minus Sign?
Quote from Forum Archives on October 1, 2010, 6:13 amPosted by: Info <Info@...>
Take following FB syntax:dim X as UniChar
long if ( X > 0 ) and ( X < 100 )
...
end ifThe 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.
Posted by: Info <Info@...>
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.