Alex Rivera | Logout

What high level languages are easily interfaced with C / C++?

Asked 2009-08-15T13:19:02.790
15

I have experience with OCaml. You had to write a stub for every function you wanted to use to convert the types even C int <-> OCaml int. Linking was painful a well. I don't even want to thing about mapping C++ objects.

What about other popular languages? Is it always a pain?

EDIT:

Please avoid duplicates. And state C and C++ interfacing capabilities separately.

EDIT 2:

Please be specific. "X can call C" doesn't give too much information.

Edit
Report

1 Answer

3

You might like this recent comp.compilers thread about various foreign-function interfaces. It was suggested that Haskell had one of the nicest.

answered 2009-08-15T13:47:29.463

Your Answer