A possibly foolish question

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|

A possibly foolish question

Alan Cameron
Is it possible to have a Haskell function or functions included in a C++
program's structure and used as a procedure?

Alan Cameron


Reply | Threaded
Open this post in threaded view
|

A possibly foolish question

Thomas Davie

On 12 Feb 2009, at 21:39, Alan Cameron wrote:

> Is it possible to have a Haskell function or functions included in a  
> C++
> program's structure and used as a procedure?

Yes, see the FFI (or Foreign Function Interface) documentation.  
That'll let you export Haskell functions into C land, and from there  
to C++.

Bob