<html><head></head><body>For the few catches I do use, I don&#39;t do any follow-up simply because those have been proven (at least so far) not to cause any problems down the line so like I mentioned they were the few cases where it was easier to catch than to hunt for a way to check for their sanity.<br>
<br>
Ivica Ico Bukvic, D.M.A<br>
Composition, Music Technology<br>
Director, DISIS Interactive Sound &amp; Intermedia Studio<br>
Director, L2Ork Linux Laptop Orchestra<br>
Assistant Director, CCTAD<br>
Virginia Tech<br>
Department of Music<br>
Blacksburg, VA 24061-0240<br>
(540) 231-6139<br>
(540) 231-5034 (fax)<br>
<a href="http://disis.music.vt.edu">disis.music.vt.edu</a><br>
<a href="http://l2ork.music.vt.edu">l2ork.music.vt.edu</a><br>
<a href="http://ico.bukvic.net">ico.bukvic.net</a><br><br><div class="gmail_quote">Jonathan Wilkes &lt;jancsika@yahoo.com&gt; wrote:<blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;">
<pre style="white-space: pre-wrap; word-wrap:break-word; font-family: sans-serif">Do you throw an error if catch catches something?<br /><br />-Jonathan<br /><br />&gt;<hr /><br />&gt; From: Ivica Ico Bukvic &lt;ico@vt.edu&gt;<br />&gt;To: Mathieu Bouchard &lt;matju@artengine.ca&gt;; Miller Puckette &lt;msp@ucsd.edu&gt; <br />&gt;Cc: pd-list@iem.at <br />&gt;Sent: Tuesday, December 27, 2011 12:45 AM<br />&gt;Subject: Re: [PD] [PD-announce] pd 0.43-1 test7 (!) available<br />&gt; <br />&gt;<br />&gt;Miller,<br />&gt;<br />&gt;If you look through the pd-l2ork C code, which is by and large near identical (at least in its core) to pd vanilla (except for comments I added while studying the code) you will find a few places where mainly due to the way pd handles GOP it is easier to simply catch a tcl/tk command than go through all the trouble of making sure the call is sane. The rest of the code contains  a series of sanity checks I added and as such spews no tcl/tk warnings or errors. I
suspect this would be trivial to merge with your code base.<br />&gt;<br />&gt;Best wishes,<br />&gt;<br />&gt;Ico<br />&gt;<br />&gt;Ivica Ico Bukvic, D.M.A<br />&gt;Composition, Music Technology<br />&gt;Director, DISIS Interactive Sound &amp; Intermedia Studio<br />&gt;Director, L2Ork Linux Laptop Orchestra<br />&gt;Assistant Director, CCTAD<br />&gt;Virginia Tech<br />&gt;Department of Music<br />&gt;Blacksburg, VA 24061-0240<br />&gt;(540) 231-6139<br />&gt;(540) 231-5034 (fax)<br />&gt;<a href="http://disis.music.vt.edu">disis.music.vt.edu</a><br />&gt;<a href="http://l2ork.music.vt.edu">l2ork.music.vt.edu</a><br />&gt;<a href="http://ico.bukvic.net">ico.bukvic.net</a><br />&gt;<br />&gt;<br />&gt;Mathieu Bouchard &lt;matju@artengine.ca&gt; wrote:<br />&gt;Le 2011-12-26 à 14:33:00, Miller Puckette a écrit :<br />&gt;&gt;<br />&gt;&gt;&gt; I read the thread on the bug tracker.  It looks like this is an old bug<br />&gt;&gt;&gt; that manifests itself worse in 0.43 because
its error recovery for<br />&gt;&gt;&gt; TCL commands coming from Pd isn't as good as 0.42 was.<br />&gt;&gt;<br />&gt;&gt;What you need is not as much error recovery as error reporting. Do <br />&gt;&gt;whatever is necessary so that future bug reports are easier to make. For <br />&gt;&gt;example, when a Tcl command fails, print the command that directly caused <br />&gt;&gt;that error, even when -d is set to 0.<br />&gt;&gt;<br />&gt;&gt;&gt; Unless someone knows how to make a tcl interpreter ignore errors when <br />&gt;&gt;&gt; executing scripts I don't know how to return to the more fail-soft 0.42 <br />&gt;&gt;&gt; way.<br />&gt;&gt;<br />&gt;&gt;Isn't that what the [catch] command already does ?<br />&gt;&gt;<br />&gt;&gt;But if anything prevents an item from being created, this will necessarily <br />&gt;&gt;cause<br />more errors later, for any tcl command that assumes that the <br />&gt;&gt;creation command worked.<br />&gt;&gt;<br />&gt;&gt;&gt;&gt;<hr /><br
/>&gt;&gt;<br />&gt;&gt;| Mathieu BOUCHARD ----- téléphone : +1.514.383.3801 ----- Montréal, QC<br />&gt;&gt;<hr /><br />&gt;&gt;<br />&gt;&gt;Pd-list@iem.at mailing list<br />&gt;&gt;UNSUBSCRIBE and account-management -&gt; <a href="http://lists.puredata.info/listinfo/pd-list">http://lists.puredata.info/listinfo/pd-list</a><br />&gt;&gt;<br />&gt;<hr /><br />&gt;Pd-list@iem.at mailing list<br />&gt;UNSUBSCRIBE and account-management -&gt; <a href="http://lists.puredata.info/listinfo/pd-list">http://lists.puredata.info/listinfo/pd-list</a><br />&gt;<br />&gt;<br />&gt;<br /></pre></blockquote></div></body></html>