On Thu, 2006-10-05 at 08:57 +0200, Michael Van Canneyt wrote: > On Thu, 5 Oct 2006, Joost van der Sluis wrote: > > I have plans to add an unidirectional dataset/query to sqldb. Thus one > > that isn't inherited from TDataset. This to improve performance, for for > > example cgi-like programs, in which iterating back and forth through a > > database isn't necessary. > > > > But while working on this, I discovered that very much code from > > TSQLQuery could be exactly copied to this new class. > > > > Now I'm thinking about using an interface, to avoid double code. But I > > don't know what effect that has on run-time performance. I mean, the > > idea was to make if faster ... > > An interface does not contain any code, so how would adding an interface > help ?
You're right. It was probably late last night. ;) Do you have another solution? Plugwash suggested to use an include file, with some macro's defined. That could work, but it's a little but ugly, imho. Other ideas? Joost _______________________________________________ fpc-devel maillist - fpc-devel@lists.freepascal.org http://lists.freepascal.org/mailman/listinfo/fpc-devel