Thanks!
Tomaz
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
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 [