[futurebasic] Re: [FB] C++ Operator?

Message: < previous - next > : Reply : Subscribe : Cleanse
Home   : December 1998 : Group Archive : Group : All Groups

From: Jamin <benjamen@...>
Date: Tue, 29 Dec 1998 09:42:24 +1100
Morrison SoftDesign said in [FB] C++ Operator?

> Does anyone know what "->" translates to, as in the following...
>
> if (curdebt -> db.mortgage) {...etc.
>

It means that "curdebt" was passed by reference rather than by value, or something like that. The "->" forces a type of de-reference to the variable to the left of it.  You will see "curdebt" is passed in as:  RoutineName(ADebtStuct *curdebt)

In FB:
curdebt -> db.mortgage  is  curdebt&.db.mortgage% (Notice the extra "&")
curdebt .db.mortgage  is  curdebt.db.mortgage%

RoutineName(ADebtStuct *curdebt)  is  FN RoutineName(@curdebt)

Jamin