Re: Automating GUI's using Euphoria
- Posted by jimcbrown (admin) Jan 24, 2013
- 1231 views
is it fair to say that you need more than a passing acquaintance with C in order to write a wrapper?
I don't think it is. You don't need a c compiler to write a wrapper in Euphoria for a simple C library (nb1). You don't need to write any c code to write a wrapper in Euphoria. You'd need to have a little knowledge of C (e.g. what C_INT, C_CHAR, and C_POINTER represent) but nothing that can't be presented in a short tutorial.
so when you get around to writing your tutorial, it's unlikely that a complete C noob would get much out of it. It's something I've been meaning to learn, but it's not a very user-friendly language.
I'd go as far as to argue that knowing how to code in C is not required to do this.
nb1: There's a weird exception when a structure is passed by value. The only time I've encountered this is in pthread_join(). This is not trivial to solve - the guy who hit this solved it by writing a custom C wrapper.