[lazarus] "Variant" variable ?

Michael Van Canneyt michael.vancanneyt at wisa.be
Wed Apr 26 11:15:18 EDT 2000




On Wed, 26 Apr 2000, dvortex wrote:

> 
> Hello.
> I am working on a "object inspector" with the LCL (just to see how far i
> can go). This form/object only check the properties of an object you tell 
> it to "inspect". it is also possible to change the value of a property, etc...)
> 
> now, I have some questions:
> I was wondering if there is any kind of "variant" type possible (the type 
> in delphi where you can put anythiing :o) , or even some
> variant array type support with fpc ?

No, it is not available.

Variant is a VERY UGLY construct which goes against all that pascal stands for,
i.e. strong type checking and such.
We'll add support for it, one day - but not soon, and only because we want to
be Delphi compatible. So it's definitely not going to be soon.

Michael.






More information about the Lazarus mailing list