On Sun, 23 Jan 2011, leledumbo wrote:


Why ?
tiOPF uses the visitor pattern extensively, and it is implemented as a
class.

Well... because there's only a bunch of visit method which is abstract?

What's wrong with using an abstract class ? By choosing an interface, you implicitly get the reference counting on top of things, and this seems to be what causes your error ? (at least, your error is a typical symptom for such cases).

It doesn't compile for me. What version of FPC did you use ?

Whoops! Sorry, I should've said that I use FPC 2.5.1 r16638 (or whatever
revision where TFPGObjectList in fgl.pp has enumerator to be used by for-in
loop)

I'll need to update my compiler first, then.

Michael.
_______________________________________________
fpc-pascal maillist  -  fpc-pascal@lists.freepascal.org
http://lists.freepascal.org/mailman/listinfo/fpc-pascal

Reply via email to