<div dir="ltr"><div dir="ltr"><div dir="ltr">Hi Marcel,</div><div dir="ltr"><br>   re FFI-Kernel-mt.69, why not</div><div dir="ltr"><br></div><div dir="ltr"><div dir="ltr">externalLibraryFunction</div><div dir="ltr"><span class="gmail-Apple-tab-span" style="white-space:pre">     </span>"Answers the external library function that will be called when evaluating this method."</div><div dir="ltr"><br></div><div dir="ltr"><span class="gmail-Apple-tab-span" style="white-space:pre">    </span>| result |</div><div dir="ltr"><span class="gmail-Apple-tab-span" style="white-space:pre"> </span>^self numLiterals > 0 ifTrue:</div><div dir="ltr"><span class="gmail-Apple-tab-span" style="white-space:pre">           </span>[(result := self literalAt: 1) class == ExternalLibraryFunction ifTrue: [result]]</div><div dir="ltr"><br></div><div>It's so much more elegant than all those explicit [nil]'s.  We should know that ifTrue: et al answer nil when their block is not evaluated.</div></div></div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Tue, May 19, 2020 at 7:18 AM <<a href="mailto:commits@source.squeak.org">commits@source.squeak.org</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-style:solid;border-left-color:rgb(204,204,204);padding-left:1ex">Marcel Taeumel uploaded a new version of FFI-Kernel to project FFI:<br>
<a href="http://source.squeak.org/FFI/FFI-Kernel-mt.70.mcz" rel="noreferrer" target="_blank">http://source.squeak.org/FFI/FFI-Kernel-mt.70.mcz</a><br>
<br>
==================== Summary ====================<br>
<br>
Name: FFI-Kernel-mt.70<br>
Author: mt<br>
Time: 19 May 2020, 4:18:35.480992 pm<br>
UUID: 77eeead7-5f0d-6c4c-99c1-fc879d8c79e6<br>
Ancestors: FFI-Kernel-mt.69<br>
<br>
Print the type for external data in tools so one can quickly recognize 'char*' etc.<br>
<br>
=============== Diff against FFI-Kernel-mt.69 ===============<br>
<br>
Item was added:<br>
+ ----- Method: ExternalData>>printOn: (in category 'printing') -----<br>
+ printOn: stream<br>
+ <br>
+       super printOn: stream.<br>
+ <br>
+       stream<br>
+               nextPut: $<;<br>
+               print: type;<br>
+               nextPut: $>.!<br>
<br>
<br>
</blockquote></div><br clear="all"><div><br></div>-- <br><div dir="ltr" class="gmail_signature"><div dir="ltr"><div><span style="font-size:small;border-collapse:separate"><div>_,,,^..^,,,_<br></div><div>best, Eliot</div></span></div></div></div>