<html><head><meta http-equiv="Content-Type" content="text/html; charset=us-ascii"></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; line-break: after-white-space;" class="">Hi,<div class=""><br class=""></div><div class="">In an ongoing effort to not forget things as I learn, I just added to my collection of mercury samples with this:</div><div class=""><br class=""></div><div class=""><a href="https://github.com/emacstheviking/mercury-library-samples/blob/main/FFI/sample.m" class="">https://github.com/emacstheviking/mercury-library-samples/blob/main/FFI/sample.m</a></div><div class=""><br class=""></div><div class="">I just wondered if, by the final version, if the code could be shorter / cleaner / mopre elegant etc and also, more importantly, is there anything I've done wrong, not done as well as it could have been in terms of efficiency ?</div><div class=""><br class=""></div><div class="">Very soon now I shall be returning to my long agao started SDL2 wrapper for a custom IDE I am now planning as part of my language transpiler and I need to be at least 'half-decent' at navigating the FFI system for that.</div><div class=""><br class=""></div><div class="">Thanks again,</div><div class="">Sean.</div><div class=""><br class=""></div></body></html>