Hello,

Say we have code:

const
  CONSTANT=1;
var
  number: Real;
begin
    number:=2;
    number:=CONSTANT;

Question is: FP compiler understands that number "2" and CONSTANT value must compiled as Real type, or compiler these numbers compiles as Integer, and to prevent in run-time Integer->Real conversions i must write "CONSTANT=Real(1)", "number:=Real(2)" or "...:=1.0" as i see in Java?


--
  Valdas Jankūnas

_________________________________________________________________
    To unsubscribe: mail [EMAIL PROTECTED] with
               "unsubscribe" as the Subject
  archives at http://www.lazarus.freepascal.org/mailarchives

Reply via email to