[Pharo-users] Re: uFFI ffiCall return value

2021-05-10 Thread Tomaž Turk
Thanks! Tomaz

[Pharo-users] Re: uFFI ffiCall return value

2021-05-10 Thread Esteban Lorenzano
Hi, In practice it is the equivalent, since the ffiCall has a return type and it takes precedence over the ^ of Pharo. Personally, I often add the ^ to ffiCalls that have a return to easy the reading, but the output will be the same. Esteban On May 10 2021, at 2:12 pm, Tomaž Turk wrote: > Dear

[Pharo-users] uFFI ffiCall return value

2021-05-10 Thread Tomaž Turk
Dear all, Should the method that calls Object>>#ffiCall: and variants always return the result of this call? For instance, in uFFI book, there is a method abs: defined as FFITutorial class >> abs: n [ ^ self ffiCall: #( int abs (int n) ) ] on page 16, however FFITutorial >> abs: n [