pharo-graphics / Alexandrie

FFI bindings and a 2D canvas for Pharo based on Cairo, Freetype and Harfbuzz
MIT License
5 stars 2 forks source link

Use FFIExternalValueHolder in bindings #17

Open tinchodias opened 2 years ago

tinchodias commented 2 years ago

IIUC from Pablo, it is more correct to create the object to pass as pointer to FFI in this way:

Screen Shot 2022-10-25 at 19 25 35

BUT, saving in some global way e.g. FFIExternalValueHolder ofType: 'void*'. The class FT2Types would be an example.

tinchodias commented 2 years ago

Maybe LGitWriteBackValueInt is good as example, too.

tinchodias commented 2 years ago

Note: The diff above implies this other change in the FFI signature:

Screen Shot 2022-10-25 at 19 51 31