<div dir="ltr"><div dir="ltr">Am Fr., 19. Aug. 2022 um 09:01 Uhr schrieb Adam Sotona <<a href="mailto:adam.sotona@oracle.com">adam.sotona@oracle.com</a>>:<br></div><div class="gmail_quote"><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div class="gmail-msg-5791986509039233250">





<div lang="en-CZ" style="overflow-wrap: break-word;">
<div class="gmail-m_-2379503723240703650WordSection1">
<p class="MsoNormal"><span><u></u> <u></u></span></p>
<p class="MsoNormal"><span><u></u> <u></u></span></p>
<div style="border-right:none;border-bottom:none;border-left:none;border-top:1pt solid rgb(181,196,223);padding:3pt 0cm 0cm">
<p class="MsoNormal" style="margin-right:0cm;margin-bottom:12pt;margin-left:36pt">
<b><span style="font-size:12pt;color:black">From: </span></b><span style="font-size:12pt;color:black">Michael van Acken <<a href="mailto:michael.van.acken@gmail.com" target="_blank">michael.van.acken@gmail.com</a>></span><u></u><u></u></p>
</div>
<div>
<div>
<div>
<p class="MsoNormal" style="margin-left:36pt">This sounds interesting.  Right now I am staying away from the higher level entry points,<u></u><u></u></p>
</div>
<div>
<p class="MsoNormal" style="margin-left:36pt">because of their WIP implementation -- as I found out when I tried to use ifThenElse(). <u></u><u></u></p>
</div>
<div>
<p class="MsoNormal" style="margin-left:36pt">`trying` doesn't seem to support finally right now.<u></u><u></u></p>
<p class="MsoNormal"><span lang="EN-US"><u></u> <u></u></span></p>
<p class="MsoNormal"><span lang="EN-US">CodeBuilder.CatchBuilder::catchingAll(…) represents finally block</span></p></div></div></div></div></div></div></blockquote><div><br></div><div>I was referring to the part where the code of the finally block is duplicated </div><div>into all paths right after their respective handled regions.  Looking at the</div><div>CodeBuilder source code, I can't find any of this.</div><div><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 class="gmail-msg-5791986509039233250"><div lang="en-CZ" style="overflow-wrap: break-word;"><div class="gmail-m_-2379503723240703650WordSection1"><div><div><div><p class="MsoNormal"><span lang="EN-US"><u></u><u></u></span></p>
</div>
<div>
<p class="MsoNormal" style="margin-left:36pt"><u></u> <u></u></p>
</div>
<div>
<p class="MsoNormal" style="margin-left:36pt">Having access to a BlockCodeBuilder instance and its isEmpty would solve my<u></u><u></u></p>
</div>
<div>
<p class="MsoNormal" style="margin-left:36pt">problem.  Is this something that can be done from the public API?<u></u><u></u></p>
<p class="MsoNormal"><span lang="EN-US"><u></u> <u></u></span></p>
<p class="MsoNormal"><span lang="EN-US">CodeBuilder::block(…)</span></p></div></div></div></div></div></div></blockquote><div><br></div><div>This method encapsulates a BlockCodeBuilder instance, but does not</div><div>provide it to the caller (the `child` below):</div><div><br></div><div><font face="monospace">    default CodeBuilder block(Consumer<BlockCodeBuilder> handler) {<br>        Label breakLabel = newLabel();<br>        BlockCodeBuilderImpl child = new BlockCodeBuilderImpl(this, breakLabel);<br>        child.start();<br>        handler.accept(child);<br>        child.end();<br>        labelBinding(breakLabel);<br>        return this;<br>    }<br></font></div><div><br></div><div>-- mva</div><div><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 class="gmail-msg-5791986509039233250"><div lang="en-CZ" style="overflow-wrap: break-word;"><div class="gmail-m_-2379503723240703650WordSection1"><div><div><div>
</div>
</div>
</div>
</div>
</div>

</div></blockquote></div></div>