[lazarus] "Variant" variable ?

Marc Weustink Marc.Weustink at cuperus.nl
Wed Apr 26 12:54:56 EDT 2000


+ From: dvortex [mailto:dvortex at netcourrier.com]
+
+ That's what i was afraid of :o)
+
+ well, for the FPC guys: if i put a "record type" together that is a
+ equivalent to the variant, how hard would it be to put that in the fpc
+ compiler ? (it can be usefull, althoug i would understand not
+ wanting to put such a hack in the compiler :o)

A variant is just a TVarData. The compiler puts type checking/conversion
stuff around it. I can imagine that you don't want to put this in a
compiler. (Let the developer put some code around it).

You can also use the good old TVarRec

Marc






More information about the Lazarus mailing list