Hi,

why does this program:


program novariant;
uses
        sysutils;
var
        a, b: double;
begin
        b := 0.4237;
        a := b**5;
        writeln(floattostr(a));
end.


when running give that error message:

$ ./novariant

Program needs probably the variants unit.
Include the variants unit in your uses statements
as one of the first units.


An unhandled exception occurred at $08052E37 :
EVariantError : Invalid variant operation
  $08052E37


TIA,
Marc


_______________________________________________
fpc-pascal maillist  -  fpc-pascal@lists.freepascal.org
http://lists.freepascal.org/mailman/listinfo/fpc-pascal

Reply via email to