[fpc-pascal] Changing iterator usage pattern in FCL-STL
Marcos Douglas
md at delfire.net
Mon Nov 9 14:48:32 CET 2015
On Mon, Nov 9, 2015 at 7:47 AM, Graeme Geldenhuys
<mailinglists at geldenhuys.co.uk> wrote:
> Not to be a stickler, but that is not an ideal interface either (in my
> eyes). Not everything is a "file", so EOF (End-of-File) was really not a
> good choice. eg: Iterating characters in a String, Objects in a
> ObjectList etc... none relate to a "file".
+1
The right way is using interfaces, if we talking about OOP.
Marcos Douglas
More information about the fpc-pascal
mailing list