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

_______________________________________________
fpc-pascal maillist  -  fpc-pascal@lists.freepascal.org
https://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal

Reply via email to