<!DOCTYPE html><html><head><title></title><style type="text/css">
p.MsoNormal,p.MsoNoSpacing{margin:0}</style></head><body><div><br></div><div><br></div><div>On Mon, Jan 31, 2022, at 10:54 AM, Mark Janssen via Cuis-dev wrote:<br></div><blockquote type="cite" id="qt" style=""><div><br></div><div><br></div><div>On Thu, Jan 27, 2022, at 6:58 PM, Hilaire Fernandes via Cuis-dev wrote:<br></div><blockquote type="cite" id="qt-qt" style=""><p><span class="qt-size" style=""><span class="size" style="font-size:18px;">Yes, I know this solution or the use of a
temporary variable. This is not what I had in mind.</span></span><br></p><div class="qt-qt-moz-cite-prefix">Le 27/01/2022 à 18:56, Juan Vuletich a
écrit :<br></div><blockquote type="cite" cite="mid:61F2DCB2.3060805@zoho.com">This
seems to work, only requiring #buttonsDo:<br></blockquote><pre class="qt-qt-moz-signature" cols="72">--
GNU Dr. Geo
<a class="qt-qt-moz-txt-link-freetext" href="http://drgeo.eu">http://drgeo.eu</a>
<a class="qt-qt-moz-txt-link-freetext" href="http://blog.drgeo.eu">http://blog.drgeo.eu</a><br></pre><div>-- <br></div><div>Cuis-dev mailing list<br></div><div><a href="mailto:Cuis-dev@lists.cuis.st">Cuis-dev@lists.cuis.st</a><br></div><div><a href="https://lists.cuis.st/mailman/listinfo/cuis-dev">https://lists.cuis.st/mailman/listinfo/cuis-dev</a><br></div></blockquote><div><br></div><div>I can't test this exactly, but I think this should work:<br></div><div><br></div><pre><code><span class="qt-font" style=""><span class="font" style="font-family:monospace;">self yourself ;
fromList: #('Yes' 'No') ::</span></span></code><br></pre><pre><code><span class="qt-font" style=""><span class="font" style="font-family:monospace;"> buttons do: [:each | </span></span></code><br></pre><pre><code><span class="qt-font" style=""><span class="font" style="font-family:monospace;"> each when: #radioSelection send: #show: to: Transcript];</span></span></code><br></pre><pre><code><span class="qt-font" style=""><span class="font" style="font-family:monospace;">yourself</span></span></code><br></pre><div><br></div><div>Mark<br></div><pre><br></pre><div><br></div><div>-- <br></div><div>Cuis-dev mailing list<br></div><div><a href="mailto:Cuis-dev@lists.cuis.st">Cuis-dev@lists.cuis.st</a><br></div><div><a href="https://lists.cuis.st/mailman/listinfo/cuis-dev">https://lists.cuis.st/mailman/listinfo/cuis-dev</a><br></div></blockquote><div><br></div><div>Hmm, self yourself; is just a very longhand for self :)<br></div><div><br></div><div>It looks what you need is something like also in Kotlin (<a href="https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/also.html">https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/also.html</a>) which has the specific use case to initialize some object and return the object itself<br></div><div><br></div><div>Then this could be written as:<br></div><div><br></div><blockquote type="cite" id="qt" style=""><pre><code><span class="qt-font" style=""><span class="font" style="font-family:monospace;">self also: [ :rg |
rg fromList: #('Yes' 'No') ::</span></span></code><br></pre><pre><code><span class="qt-font" style=""><span class="font" style="font-family:monospace;"> buttons do: [:each | </span></span></code><br></pre><pre><code><span class="qt-font" style=""><span class="font" style="font-family:monospace;"> each when: #radioSelection send: #show: to: Transcript]]</span></span></code><br></pre></blockquote><div><br></div></body></html>