Hi,
<snip>
uses
float32;
{$mode objfpc}
operator * (const f1, f2: TFloat32): TFloat32; <-- HERE
begin
Result:=Float32Mul(f1, f2);
end;
and FPC throws an error:
Target OS: Embedded
Compiling C:\Programs\avr\avrpascal\examples\Operators.pas
Operators.pas(12,46) Error: Impossible operator overload
Operators.pas(17,11) Fatal: Syntax error, "identifier" expected but "OPERATOR" found
Fatal: Compilation aborted
What type is the TFloat32 ? If it's a record then it should work .
If it's a class, object I don't think that its supported . AFAIK, Only the enumerator operator supports classes .
EDIT: I wrote my reply while you posted :
A long shot but maybe this works ?
operator * (const f1, f2: UInt32): UInt32;
regards,