[fpc-pascal]classes for ordinal vars

Charl charlvj at c.ict.om.org
Thu Jan 15 16:08:11 CET 2004


Hi

I have been wondering about creating a unit with classes representing 
normal variable types, like a TIntegerObj, TCharacterObj, etc. The idea 
comes from Java, and I have found some occations when this would have 
been very helpful.

Basically I have two question about this: Is there something similar 
already in the FCL?
And, what is the performance issues in FP about creating new objects? 
(example:, what kind of performance issues would there be when you 
create and work with a TObjectList with loads of TIntegerObj instances, 
instead of a normal TList containing integer pointers)

Peace.
Charl





More information about the fpc-pascal mailing list