foreign function call

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

foreign function call

raffaello.giulietti
Hello,

is there documentation and/or examples about Pharo's Foreign Function
Interface? Is FFI inherited from Squeak's
(http://wiki.squeak.org/squeak/1414)?

Thanks
Raffaello Giulietti

Reply | Threaded
Open this post in threaded view
|

Re: foreign function call

EstebanLM
Hi,

In essence, is the same. To have all complete version running (in 1.4), you should execute:

Gofer it
        squeaksource:'Alien' ;
        package: 'ConfigurationOfOldAlien';
        load.

((Smalltalk globals classNamed: 'ConfigurationOfOldAlien') project version: #stable) load.

This will load FFI and Alien (who allows the callback stuff). Then you can look for the examples.

(yes... this is an ugly and low-documented issue... we should improve in that area this year)

Esteban

On Jun 6, 2012, at 11:02 AM, Raffaello Giulietti wrote:

> Hello,
>
> is there documentation and/or examples about Pharo's Foreign Function
> Interface? Is FFI inherited from Squeak's
> (http://wiki.squeak.org/squeak/1414)?
>
> Thanks
> Raffaello Giulietti
>