[fpc-devel]FPC and variants

Willi Krenn willi at dwscript.com
Mon Feb 19 21:55:29 CET 2001


> > What do you think when FPC will have variant support?
>
> 1.1 already has, but not yet all types that Delphi knows are
> supported, and it still needs a lot of debugging. (e.g. you can't pass a
> variant to an array of const)

So this program should work on win32 with the latest snapshot?

program test;
uses crt;
var i:variant;
begin
  write('Enter a number: '); readln(i);
  writeln('You pressed '+i);
  readln;
end.


> On the other hand, 1.1 snapshots are seeming to become somewhat
> usuable again.

Well, if I get the program above to work then I'll play around with the
variants..

Willi





More information about the fpc-devel mailing list