CstomData: packed record case integer of 0 : (i64: int64); 1 : (lo32, hi32 : Cardinal); 2 : (Words : Array[0..3] of Word); 3 : (Bytes : Array[0..7] of Byte); 4 : (p : pointer); 5 : (obj : TObject); end;You just invented a Variant type.
Yes, but one that needs much less memory than default fpc variant (8 byte vs. 24 byte) This record is always a better data type than int64 for custom data, but for variant this is not sure.
Benito -- _______________________________________________ Lazarus mailing list [email protected] http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus
