Hi Gour, It's pretty straightforward to wrap opaque C pointers with Julia types. For example, see https://github.com/JuliaOpt/Gurobi.jl. Adding a finalizer is a good way to avoid needing to manually free objects. It's also common to add multiple methods to perform type conversions and translate C error codes into exceptions. After that, there's not much to it! You're free to define a higher-level interface as you like.
Miles On Sunday, February 16, 2014 4:04:01 PM UTC-5, Gour wrote: > > Hello, > > as I understand, based on what I read in the docs, it's very easy to > call external C code. > > However, since Julia offers ability to provide higher-level types as > well as some type-safety, I'd like to provide thick bindings for the > required library offeing more idiomatic Julia interface/API, so the > question is if you can give some example of thick Julia bindings for > some C library? > > > Sincerely, > Gour > > -- > Perform your prescribed duty, for doing so is better than not > working. One cannot even maintain one's physical body without work. > > http://www.atmarama.net | Hlapicina (Croatia) | GPG: 52B5C810 > > >
