On 17/08/2020 12:25, Paul Reeves wrote: > > I thought I would port the OO API examples to Object Pascal. After all, they > are quite simple, so how hard could it be? > > In fact it is more difficult than I thought and I am not happy with the > results. I've done two examples - update and select - and I would like to > commit them but before doing so I'd like to discuss how we should proceed. > > In my opinion we should start a new sub-directory to contain all the object > pascal code. This is because the examples will actually need several > supporting files in a common directory. It would be best if the were kept > clearly separate from other examples. > > But the main problem I have found is that if I try to copy the C++ style too > closely all we end up with is very bad object pascal. It succeeds in > demonstrating the new API but does not demonstrate good programming practice. > > However, if we want to demonstrate good programming practice we should > probably integrate the examples into the VCL. And that might be a step too > far. > > Does anyone have any thoughts on this? >
I'd say its correct place would be a new project under the FirebirdSQL organization. There is no Java, .Net, etc in core, so should not be Pascal examples there, specially, as you have figured out, the API is not easy to be directly used by application developers. Adriano Firebird-Devel mailing list, web interface at https://lists.sourceforge.net/lists/listinfo/firebird-devel