Re: [Pharo-dev] How to use ExternalAddress in callouts with new FFI?

2015-12-29 Thread Esteban Lorenzano
> On 28 Dec 2015, at 23:11, Mariano Martinez Peck wrote: > > > > On Mon, Dec 28, 2015 at 5:11 PM, Mariano Martinez Peck > wrote: > Hi Esteban, > > Previously, I was doing with NB something like this: > > pointer := NativeBoost allocate: 4. > self primitiveWhate

Re: [Pharo-dev] How to use ExternalAddress in callouts with new FFI?

2015-12-28 Thread Mariano Martinez Peck
On Mon, Dec 28, 2015 at 5:11 PM, Mariano Martinez Peck < marianop...@gmail.com> wrote: > Hi Esteban, > > Previously, I was doing with NB something like this: > > > *pointer := NativeBoost allocate: 4.* > *self primitiveWhatever: pointer* > > and: > > *primitiveWhatever: pointer* > * errorCode >*

[Pharo-dev] How to use ExternalAddress in callouts with new FFI?

2015-12-28 Thread Mariano Martinez Peck
Hi Esteban, Previously, I was doing with NB something like this: *pointer := NativeBoost allocate: 4.* *self primitiveWhatever: pointer* and: *primitiveWhatever: pointer* * * * ^ self nbCall: #( int void (NBExternalAddress pointer ) )* But of course that doesn't work with latest FFI. So I tr