<div class="markdown_content"><hr />
<p><strong> <a class="alink" href="http://sourceforge.net/p/pure-data/patches/518/">[patches:#518]</a> dynroute.tcl patch fixing removing items and some more</strong></p>
<p><strong>Status:</strong> open<br />
<strong>Labels:</strong> pdtcl <br />
<strong>Created:</strong> Sun Dec 22, 2013 04:55 PM UTC by electrickery<br />
<strong>Last Updated:</strong> Sun Dec 22, 2013 04:55 PM UTC<br />
<strong>Owner:</strong> nobody</p>
<p>The main problem with the script is with the remove message on inlet 1.<br />
This failed to remove the item from the routing list. </p>
<p>Another problem with the script is the usage of un-evaluated catch {}<br />
statements. Like in Java, these make errors disappear without a trace,<br />
not very robust programming. I replaced these by a test. </p>
<p>The last and most minor issue is that the remove function requires the<br />
routed outlet, but does not use it.</p>
<p>The initial bug is patched by replacing line 50:<br />
-    catch {dict unset @routing $sel $out}<br />
+    set @routing <span>[dict remove $@routing $sel]</span></p>
<p>F.J. Kraan, 2013-12-22</p>
<hr />
<p>Sent from sourceforge.net because pd-dev@lists.iem.at is subscribed to <a href="https://sourceforge.net/p/pure-data/patches/">https://sourceforge.net/p/pure-data/patches/</a></p>
<p>To unsubscribe from further messages, a project admin can change settings at <a href="https://sourceforge.net/p/pure-data/admin/patches/options.">https://sourceforge.net/p/pure-data/admin/patches/options.</a>  Or, if this is a mailing list, you can unsubscribe from the mailing list.</p></div>