[fpc-pascal] flexible record design

Felipe Monteiro de Carvalho felipemonteiro.carvalho at gmail.com
Fri May 28 12:25:59 CEST 2010


Hello,

2010/5/28 spir ☣ <denis.spir at gmail.com>:
> Side-question: What is the purpose of introducing unimplemented methods? Sub-classes can extend a super-class anyway, no? Is it just an incentive to implement those methods?

TStrings is a an abstract class, which means that you shouldn't use it
directly. It only provides guidelines for implementing a TStrings like
class.

> I would like to know the underlying structure of TString (linked list, "flexible-ised" dynamic array, what else?).

TStrings provides no storage.

I think that TStringList should be what you are looking for. See it's
code instead.

-- 
Felipe Monteiro de Carvalho



More information about the fpc-pascal mailing list