On Fri, Apr 04, 2008 at 11:53:03AM +0200, Marco van de Voort wrote:
> > How I can make this conversion without warning?
> > Overtyping m := Comp(t) is confusing and not delphi compatible.
>
> FPC is not warning compatible with FPC. Proposed solution looks fine to me.
program co;
uses
Classes, Sy
Marco van de Voort schreef:
FPC is not warning compatible with FPC.
:-)
Can you give an example?
Vincent
___
fpc-devel maillist - fpc-devel@lists.freepascal.org
http://lists.freepascal.org/mailman/listinfo/fpc-devel
> How I can make this conversion without warning?
> Overtyping m := Comp(t) is confusing and not delphi compatible.
FPC is not warning compatible with FPC. Proposed solution looks fine to me.
___
fpc-devel maillist - fpc-devel@lists.freepascal.org
http
Compiling this code:
var
t: TDateTime;
m: Comp;
begin
t := 1000.999;
m := t;
end.
Throws:
Warning: Automatic type conversion from floating type to COMP which is an
integer type
How I can make this conversion without warning?
Overtyping m := Comp(t) is confusing and not delphi compatibl