May 022009
 

I believe I just had spent too much time on languages like C and Perl (though I’m not good at Perl at all), so I got enough trouble with strong type language, like Ada, as you can imagine.

I would like to say the problem comes from programming with mixed languages – I’m doing my PPCam project on Windows platform, all APIs, no wonder, are in C format, and I believe things will be the same on Linux though Ada may have better binding for non-GUI libraries. I have all sort of pointers passed to/returned from APIs and get to convert them to corresponding arrays, and this becomes boring due to Ada is a strong type language thus even for similiar types you have to do the same thing again, even as simple as to instantiate a new Unchecked_Conversion. Let me say it again, BORING.

I don’t know what happens to OS X, I got impression that most API there were in Object Pascal format but I never did serious programming on Mac (maybe time to take a try?), but it doesn’t matter at all now as I will spend at least 2/3 of my time on Windows and Linux programming, as best case for OS X is I can take it as 1st tier platform as Windows and Linux.

So using Ada with C is still my destiny, have to live with it, I think I just need to accumulate enough convertors to make things work.

 Posted by at 21:06  Tagged with:

  One Response to “Trouble with strong type language”

  1. […] I use Interfaces.C.Pointers solved my problem mentioned here, actually it is not that hard to convert an C pointer to Ada array […]

Sorry, the comment form is closed at this time.