<html>
<head>
<meta content="text/html; charset=windows-1252"
http-equiv="Content-Type">
</head>
<body bgcolor="#FFFFFF" text="#000000">
<p>That was so long ago I honestly don't remember. What I do
remember is that I had to take several stabs at this until I got
it right. So, there may be another commit on top of this that does
this the right way. If Purr-Data's current behavior matches that
of the latest pd-l2ork, then this fix may have been superseded by
another.<br>
</p>
<br>
<div class="moz-cite-prefix">On 3/25/2017 9:44 PM, Jonathan Wilkes
wrote:<br>
</div>
<blockquote
cite="mid:1077286092.3010325.1490492684216@mail.yahoo.com"
type="cite">
<div style="color:#000; background-color:#fff;
font-family:Helvetica Neue, Helvetica, Arial, Lucida Grande,
sans-serif;font-size:13px">
<div>Hello,</div>
<div id="yui_3_16_0_1_1490484570129_24153">I just noticed this:</div>
<div><br>
</div>
<div id="yui_3_16_0_1_1490484570129_24177">commit
5e18b837acd440ac4751c90c0c0b1e4a71623a2e<br>
Author: Ivica Ico Bukvic <a class="moz-txt-link-rfc2396E" href="mailto:ico@vt.edu"><ico@vt.edu></a><br>
Date: Thu Jul 18 16:41:53 2013 -0400<br>
<br>
fixed regression in select due to
37c0cf150e42e0277a0496cb73d48a114c64f0e7 commit which made it
behave inconsistently thus making it impossible for floats to
be treated as symbols (in cases where first argument was a
symbol). Also introduced similar fix to the route object, thus
allowing for second inlet to receive either float or symbol<br>
</div>
<div id="yui_3_16_0_1_1490484570129_24189"><br>
</div>
<div>***</div>
<div id="yui_3_16_0_1_1490484570129_24263"><br>
</div>
<div>What is the regression that this was meant to fix? Basing
the object's "mode" off of the type <br>
</div>
<div dir="ltr" id="yui_3_16_0_1_1490484570129_24280">of the
first argument as this commit does will _not_ allow floats to
be treated as symbols as the <br>
</div>
<div dir="ltr" id="yui_3_16_0_1_1490484570129_24264">commit
message suggests.</div>
<div dir="ltr" id="yui_3_16_0_1_1490484570129_24281"><br>
</div>
<div dir="ltr" id="yui_3_16_0_1_1490484570129_24289">If the
implication is that you want this to work:</div>
<div dir="ltr" id="yui_3_16_0_1_1490484570129_24291">[42(</div>
<div dir="ltr" id="yui_3_16_0_1_1490484570129_24299">|</div>
<div dir="ltr" id="yui_3_16_0_1_1490484570129_24300">[makefilename
%d]</div>
<div dir="ltr" id="yui_3_16_0_1_1490484570129_24301">|</div>
<div dir="ltr" id="yui_3_16_0_1_1490484570129_24306">[select
blah 42]</div>
<div dir="ltr" id="yui_3_16_0_1_1490484570129_24343"><br>
</div>
<div dir="ltr" id="yui_3_16_0_1_1490484570129_24344">Then the
implication is wrong, because you don't get a match that way
under any version of <br>
</div>
<div dir="ltr" id="yui_3_16_0_1_1490484570129_24345">[select]
for any version of Pd. Instead you get a match for the "42"
slot on this:</div>
<div dir="ltr" id="yui_3_16_0_1_1490484570129_24346"><br>
</div>
<div dir="ltr" id="yui_3_16_0_1_1490484570129_24347">[symbol(</div>
<div dir="ltr" id="yui_3_16_0_1_1490484570129_24390">|</div>
<div dir="ltr" id="yui_3_16_0_1_1490484570129_24358">[select
blah 42]</div>
<div dir="ltr" id="yui_3_16_0_1_1490484570129_24367"><br>
</div>
<div dir="ltr" id="yui_3_16_0_1_1490484570129_24398">That is,
_any_ numeric argument will match an incoming empty symbol
because that's what <br>
</div>
<div dir="ltr" id="yui_3_16_0_1_1490484570129_24399">the
SETSYMBOL macro does when you feed it a floatarg.</div>
<div dir="ltr" id="yui_3_16_0_1_1490484570129_24422"><br>
</div>
<div dir="ltr" id="yui_3_16_0_1_1490484570129_24423">I'd like to
revert back to my "mixed" mode algorithm so that the "42" slot
matches on this:</div>
<div dir="ltr" id="yui_3_16_0_1_1490484570129_24424"><br>
</div>
<div dir="ltr" id="yui_3_16_0_1_1490484570129_24425">[42(</div>
<div dir="ltr" id="yui_3_16_0_1_1490484570129_24434">|</div>
<div dir="ltr" id="yui_3_16_0_1_1490484570129_24433">[select
blah 42]</div>
<div dir="ltr" id="yui_3_16_0_1_1490484570129_24439"><br>
</div>
<div dir="ltr" id="yui_3_16_0_1_1490484570129_24447">and the
"blah" slot matches on this:</div>
<div dir="ltr" id="yui_3_16_0_1_1490484570129_24448"><br>
</div>
<div dir="ltr">[symbol blah(</div>
<div dir="ltr" id="yui_3_16_0_1_1490484570129_24449">|</div>
<div dir="ltr" id="yui_3_16_0_1_1490484570129_24461">[select 42
blah]</div>
<div dir="ltr" id="yui_3_16_0_1_1490484570129_24484"><br>
</div>
<div dir="ltr" id="yui_3_16_0_1_1490484570129_24485">Mixing arg
types isn't very common, but this is the only sane behavior I
can think of (and it <br>
</div>
<div dir="ltr" id="yui_3_16_0_1_1490484570129_24486">shouldn't
have broken any patches in all the time [select] behaved this
way in Pd-l2ork).</div>
<div dir="ltr" id="yui_3_16_0_1_1490484570129_24487"><br>
</div>
<div dir="ltr" id="yui_3_16_0_1_1490484570129_24488">-Jonathan<br>
</div>
</div>
<br>
<fieldset class="mimeAttachmentHeader"></fieldset>
<br>
<pre wrap="">_______________________________________________
L2Ork-dev mailing list
<a class="moz-txt-link-abbreviated" href="mailto:L2Ork-dev@disis.music.vt.edu">L2Ork-dev@disis.music.vt.edu</a>
<a class="moz-txt-link-freetext" href="http://disis.music.vt.edu/listinfo/l2ork-dev">http://disis.music.vt.edu/listinfo/l2ork-dev</a></pre>
</blockquote>
<br>
</body>
</html>