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 [
self ffiCall: #( int abs (int n) )
]
on page 52 doesn't have an explicit return ^. The book, however, in most of the examples uses the explicit return. What is the recommended approach?
Thanks,
Tomaz