<html><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; "><br><div><div>On Sep 6, 2011, at 1:16 PM, &lt;<a href="mailto:martin.peach@sympatico.ca">martin.peach@sympatico.ca</a>&gt; &lt;<a href="mailto:martin.peach@sympatico.ca">martin.peach@sympatico.ca</a>&gt; wrote:</div><br class="Apple-interchange-newline"><blockquote type="cite"><span class="Apple-style-span" style="border-collapse: separate; color: rgb(0, 0, 0); font-family: Helvetica; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-align: -webkit-auto; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-border-horizontal-spacing: 0px; -webkit-border-vertical-spacing: 0px; -webkit-text-decorations-in-effect: none; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; font-size: medium; "><div class="hmmessage" style="font-size: 10pt; font-family: Tahoma; "><div dir="ltr"><br><br><div>&gt; Date: Tue, 6 Sep 2011 08:12:15 +0200<br>&gt; From:<span class="Apple-converted-space">&nbsp;</span><a href="mailto:fbar@footils.org">fbar@footils.org</a><br>&gt; To:<span class="Apple-converted-space">&nbsp;</span><a href="mailto:hans@at.or.at">hans@at.or.at</a><br>&gt; CC:<span class="Apple-converted-space">&nbsp;</span><a href="mailto:pd-list@iem.at">pd-list@iem.at</a><br>&gt; Subject: Re: [PD] (breaking symbols) was Re: find a list of numbers in a text file<br>&gt;<span class="Apple-converted-space">&nbsp;</span><br>&gt; Hi,<br>&gt;<span class="Apple-converted-space">&nbsp;</span><br>&gt; On Mon, Sep 05, 2011 at 02:34:30PM -0400, Hans-Christoph Steiner wrote:<br>&gt; &gt;<span class="Apple-converted-space">&nbsp;</span><br>&gt; &gt; Then having the patch rely on the "error: float: no method for<br>&gt; &gt; 'symbol'" error that is normally generated in that case.<span class="Apple-converted-space">&nbsp;</span><br>&gt;<span class="Apple-converted-space">&nbsp;</span><br>&gt; Well, it prints an error because there *is* an error in the patch. The<br>&gt; author should never have converted a float to a symbol and expect to<br>&gt; still do float calculations with it.<span class="Apple-converted-space">&nbsp;</span><br>&gt;<span class="Apple-converted-space">&nbsp;</span><br><br>Yes, I think it ought to be up to the external to implement its own symbol-to-float converter since there is no universally valid way of doing it.<br>The same pattern will have different meanings in different context and Pd can't be expected to know what is expected in a specific case.<br><br>Martin<br></div></div></div></span></blockquote><br></div><div>That sounds like a recipe for disaster, then we end up with multiple, incompatible ways of doing this. &nbsp;I don't think anyone is proposing that symbols like "four" get converted to 4, but only symbols like 43, 5.22, -234, etc. &nbsp;Things that can be directly converted from a char* to a float with a standard function.</div><div><br></div><div>.hc</div><div> <span class="Apple-style-span" style="border-collapse: separate; color: rgb(0, 0, 0); font-family: Helvetica; font-size: medium; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-align: auto; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-border-horizontal-spacing: 0px; -webkit-border-vertical-spacing: 0px; -webkit-text-decorations-in-effect: none; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; "><div style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; "><span class="Apple-style-span" style="border-collapse: separate; color: rgb(0, 0, 0); font-family: Helvetica; font-size: 12px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-border-horizontal-spacing: 0px; -webkit-border-vertical-spacing: 0px; -webkit-text-decorations-in-effect: none; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; "><span class="Apple-style-span" style="border-collapse: separate; color: rgb(0, 0, 0); font-family: Helvetica; font-size: 12px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-border-horizontal-spacing: 0px; -webkit-border-vertical-spacing: 0px; -webkit-text-decorations-in-effect: none; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; "><div><br class="Apple-interchange-newline"><br></div><div>----------------------------------------------------------------------------</div><div><div><br></div>"Making boring techno music is really easy with modern tools,&nbsp;but with live coding, boring techno is much harder." - Chris McCormick</div><div><br></div></span><br class="Apple-interchange-newline"></span><br class="Apple-interchange-newline"></div></span> </div><br></body></html>