<div dir="ltr"><div class="gmail_default" style="font-family:monospace,monospace">I've taken a look at your example.</div><div class="gmail_default" style="font-family:monospace,monospace">I think it's fine the way it is; you'd be better spending your time writing</div><div class="gmail_default" style="font-family:monospace,monospace">another example than polishing this one.<br></div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Sun, 7 Aug 2022 at 03:04, Sean Charles (emacstheviking) <<a href="mailto:objitsu@gmail.com">objitsu@gmail.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div style="overflow-wrap: break-word;">Hi,<div><br></div><div>In an ongoing effort to not forget things as I learn, I just added to my collection of mercury samples with this:</div><div><br></div><div><a href="https://github.com/emacstheviking/mercury-library-samples/blob/main/FFI/sample.m" target="_blank">https://github.com/emacstheviking/mercury-library-samples/blob/main/FFI/sample.m</a></div><div><br></div><div>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><br></div><div>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><br></div><div>Thanks again,</div><div>Sean.</div><div><br></div></div>_______________________________________________<br>
users mailing list<br>
<a href="mailto:users@lists.mercurylang.org" target="_blank">users@lists.mercurylang.org</a><br>
<a href="https://lists.mercurylang.org/listinfo/users" rel="noreferrer" target="_blank">https://lists.mercurylang.org/listinfo/users</a><br>
</blockquote></div>