> 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? > 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) -- View this message in context: http://free-pascal-general.1045716.n5.nabble.com/Weird-interface-behavior-tp3353651p3353721.html Sent from the Free Pascal - General mailing list archive at Nabble.com. _______________________________________________ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/mailman/listinfo/fpc-pascal