[fpc-pascal] Variants with classes and records
Hairy Pixels
genericptr at gmail.com
Wed Oct 5 14:16:41 CEST 2022
Is it possible to assign a class to a variant? I tried and get a crash. If not, why not? It’s just a pointer so I would expect it to work.
I also see a “varRecord” constant (in varianth.inc) which suggests you could assign a record to a variant but I get an error trying to do this, and honestly that makes sense so I’m curios what this constant is for.
Regards,
Ryan Joseph
More information about the fpc-pascal
mailing list