[fpc-devel]FPC and variants
Marco van de Voort
marcov at stack.nl
Mon Feb 19 22:29:48 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.
>
No, but Delphi doesn't eat this either. You can't read() write() variants.
More information about the fpc-devel
mailing list