2016-01-27 0:19 GMT-02:00 silvioprog <[email protected]> > To summarize my opinion: if I am java programmer, would be better if I can >> solve my problem via Java classes than using C library binds. If i am a >> Pascal programmer, i prefer to solve my problem via Pascal classes instead >> of C binds. Add an external dependency to the code may be a good option in >> short term, however may become a big problem in long term. Perhaps, if the >> Lazarus GUI framework was developed using pure pascal ( like fpGUI) instead >> of using external libraries and frameworks, we could develop mobile apps >> using Lazarus today. >> > Me too, but Java programmers mostly time use external C libraries when it > hasn't already implemented some feature yet, it is a good choice, and you > can use that Java classes without knowing that it make calls to an external > C library. The Free Pascal and Delphi do it too, for example, when you > access a database using SQLdb, it uses an external C library (the database > client), that is made in C, and many Pascal programmers uses SQLdb with > pure Pascal interfaces (headers) without knowing that the main > implementation is in the external C library. > > -- > Silvio Clécio > > I undertand this. I know it is virtually impossible to drop all the dependency on external C libs on all platforms and programming languages. It is not feasible and such goal is all about waste of time and reinventing the wheel. I wouldn't do this even in my projects.
Let me explain in another way: nowadays, Lazarus doesn't provide a GUI framework for Android. Perharps, there is a C framework that can solve the problem now. However, although implementing C binds requires relative little time and efforts, join efforts in projects like LCL Custom Draw and FpGUI may result in many benefits on long-term so, that may be the best choice.
-- _______________________________________________ Lazarus mailing list [email protected] http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus
