<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="">Thanks Richard.<div class=""><br class=""></div><div class="">And...spooky! Last night I started going over chapter 7, "Writing Interpreters" of my copy of  The Craft Of Prolog!</div><div class="">I should buy a lottery ticket today then, it's obviously a fortuitious omen. </div><div class=""><br class=""></div><div class="">Thanks again,</div><div class="">Sean.</div><div class=""><br class=""></div><div class=""><div><br class=""><blockquote type="cite" class=""><div class="">On 10 Aug 2022, at 16:22, Richard O'Keefe <<a href="mailto:raoknz@gmail.com" class="">raoknz@gmail.com</a>> wrote:</div><br class="Apple-interchange-newline"><div class=""><div dir="ltr" class=""><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 class=""></div></div><br class=""><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" class="">objitsu@gmail.com</a>> wrote:<br class=""></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;" 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" target="_blank" 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></div>_______________________________________________<br class="">
users mailing list<br class="">
<a href="mailto:users@lists.mercurylang.org" target="_blank" class="">users@lists.mercurylang.org</a><br class="">
<a href="https://lists.mercurylang.org/listinfo/users" rel="noreferrer" target="_blank" class="">https://lists.mercurylang.org/listinfo/users</a><br class="">
</blockquote></div>
</div></blockquote></div><br class=""></div></body></html>