Hi, a small remark (mP V6.0.0):
when compiling this code
Code: Select all
program Real_Artithmetic;
{ Declarations section }
const Multiplier = 1024.0;
var I: byte;
VReal: real;
begin
{ Main program }
VReal := Multiplier * I;
end.
the warning "implicite typecast performed from byte to double" for line
This would be no problem if the type "double" was defined in mikroPascal,
but it is not. The compiler treats the word "double" the same as the type "real", but the help nor the documentation mentiones that alias.
This makes appreciating the warning more difficult.
Thanks in advance! and keep up the good work.
Kind regards, Dany.
Forget your perfect offering. There is a crack in everything, that's how the light gets in... (L. Cohen)
Remember when we were young? We shone like the sun. (David Gilmour)