Oh, cool, yeah, that is a nice design, I see it now. <div><br></div><div>but anyways, I still see $0 as locality and the rest as inheritance, as you are just still making a child inherit (by $1) a parent&#39;s local $0 ID.<br>
<div><br></div><div>&gt; I personally love the idea of using $0 as the selector </div><div>&gt; of the abstraction -- its name or filename, and $$ as </div><div>&gt; its ID, but too late for that now.</div><div><br></div>
<div>now that wasn&#39;t clear for me, but if we keep on it I suggest we might need to change the thread name maybe.</div><div><br></div><div>I hope this thread would stick to the point that the find feature could do a better job by finding &quot;$0&quot;, and that &quot;$0&quot; could be used in messages since it is useless the way it is.</div>
<div><br></div><div>thanks</div><div>alex</div><div><br></div><div><br><div class="gmail_quote">On Fri, Nov 13, 2009 at 6:27 PM, Matt Barber <span dir="ltr">&lt;<a href="mailto:brbrofsvl@gmail.com">brbrofsvl@gmail.com</a>&gt;</span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">I am saying two things:<br>
<br>
1) Without $0 or something similar, the only way to guarantee similar<br>
locality would be through use of $1 or $n -- you would have to<br>
manually give each instance an instance number.  Sometimes you even<br>
want to be able to group instances in the way you suggested.  I&#39;m not<br>
sure of the history of Pd, but if $0 was implemented after<br>
abstractions with arguments, then manually assigning locality was<br>
probably necessary.<br>
<br>
2) Sometimes $0 NEEDS to be inherited (probably as $1 or some such) by<br>
various helper abstractions within a larger, higher-functioning<br>
abstraction.  This is especially the case with dynamic patching --<br>
imagine, say, a &quot;bell synthesis&quot; patch using a dynamically created<br>
bank of enveloped oscillator abstractions.  In that case, you&#39;d want<br>
each oscillator abstraction to [throw~] to the same [catch~] within<br>
the parent &quot;instrument&quot; abstraction.  To do this, you could have<br>
[catch~ $0-out] within the parent, and [throw $1-out] within each<br>
child, while passing the parent&#39;s $0 to the children.<br>
<br>
So all I&#39;m saying is that $1-$n often plays a really important role in<br>
locality, in addition to a number of other things, and to me it seems<br>
almost natural to use $0 as an analogy for this role.  I personally<br>
love the idea of using $0 as the selector of the abstraction -- its<br>
name or filename, and $$ as its ID, but too late for that now.<br>
<font color="#888888"><br>
Matt<br>
</font><div><div></div><div class="h5"><br>
On Fri, Nov 13, 2009 at 3:01 PM, Alexandre Porres &lt;<a href="mailto:porres@gmail.com">porres@gmail.com</a>&gt; wrote:<br>
&gt; hmm, I am sorry, I don&#39;t think I got what you meant... could you give an<br>
&gt; example please?<br>
&gt; The way I see is that $1...$n are related to the inheritance concept. They<br>
&gt; could be used inside [send~] &amp; [receive~] objects to force some sort of<br>
&gt; locality, but you can&#39;t really guarantee locality by that, it is just some<br>
&gt; way around that is not 100% safe, cause if you have [s $1-gain] in an<br>
&gt; abstraction, and $1 inheriting &quot;A&quot; for instance, a [s A-gain] object in a<br>
&gt; parent patch (or even on another opened patch) would still get the value<br>
&gt; globally.<br>
&gt; cheers<br>
&gt; alex<br>
&gt;<br>
&gt; On Fri, Nov 13, 2009 at 5:28 PM, Matt Barber &lt;<a href="mailto:brbrofsvl@gmail.com">brbrofsvl@gmail.com</a>&gt; wrote:<br>
&gt;&gt;<br>
&gt;&gt; Without $0, one would have to use $1 ... $n for locality.  $0 of a<br>
&gt;&gt; parent patch often needs to be passed as $1 to a child for proper<br>
&gt;&gt; locality, for instance, so I don&#39;t think they are necessarily THAT<br>
&gt;&gt; different conceptually.<br>
&gt;&gt;<br>
&gt;&gt; Matt<br>
&gt;&gt;<br>
&gt;&gt; On Fri, Nov 13, 2009 at 11:49 AM, Alexandre Porres &lt;<a href="mailto:porres@gmail.com">porres@gmail.com</a>&gt;<br>
&gt;&gt; wrote:<br>
&gt;&gt; &gt;&gt; Calling this an exception creates<br>
&gt;&gt; &gt;&gt; the impression, that $1 in a message<br>
&gt;&gt; &gt;&gt; is the same as in an object.<br>
&gt;&gt; &gt; Hmm, I see you have a point! But I am just used to consider &quot;$0&quot; and<br>
&gt;&gt; &gt; &quot;$1, $2<br>
&gt;&gt; &gt; ... $n&quot; different/separate things, being &quot;$0&quot; solely a locality sintax.<br>
&gt;&gt; &gt; Putting them as separate concepts I see &quot;$1, $2 ... $n&quot; as two different<br>
&gt;&gt; &gt; things wether in messages or objects, and that &quot;$0&quot; is just useless in<br>
&gt;&gt; &gt; messages.<br>
&gt;&gt; &gt; Anyway, I am cool with what needs to be done in order to put &quot;$0&quot; in<br>
&gt;&gt; &gt; messages, I still think it&#39;s a bit of an unnecessary hassle, but it<br>
&gt;&gt; &gt; ain&#39;t<br>
&gt;&gt; &gt; that much of a big deal after all.<br>
&gt;&gt; &gt; The thing that had no other way around was using the Find feature to<br>
&gt;&gt; &gt; actually find them, so I thought about bringing this all up: the<br>
&gt;&gt; &gt; hassle and<br>
&gt;&gt; &gt; the problem.<br>
&gt;&gt; &gt; I now see that uncheking &quot;whole word&quot; in the new version is just another<br>
&gt;&gt; &gt; &quot;way around&quot; rather than actually getting the Find feature to look for<br>
&gt;&gt; &gt; &quot;$0&quot;,<br>
&gt;&gt; &gt; or even for the window number once we explicitly tell it which one it<br>
&gt;&gt; &gt; is.<br>
&gt;&gt; &gt; So, nerverminding about &quot;$0&quot; in messages, I would still make a point<br>
&gt;&gt; &gt; here<br>
&gt;&gt; &gt; for the Find feature to be able to find &quot;$0&quot;, I hope it isn&#39;t much<br>
&gt;&gt; &gt; hassle<br>
&gt;&gt; &gt; getting it to do so.<br>
&gt;&gt; &gt; Thanks a bunch folks!<br>
&gt;&gt; &gt; Cheers<br>
&gt;&gt; &gt; alex<br>
&gt;&gt; &gt;<br>
&gt;&gt; &gt; On Fri, Nov 13, 2009 at 8:03 AM, Roman Haefeli &lt;<a href="mailto:reduzierer@yahoo.de">reduzierer@yahoo.de</a>&gt;<br>
&gt;&gt; &gt; wrote:<br>
&gt;&gt; &gt;&gt;<br>
&gt;&gt; &gt;&gt;<br>
&gt;&gt; &gt;&gt;<br>
&gt;&gt; &gt;&gt; Am 12.11.09 17:21 schrieb &quot;Alexandre Porres&quot; unter &lt;<a href="mailto:porres@gmail.com">porres@gmail.com</a>&gt;:<br>
&gt;&gt; &gt;&gt;<br>
&gt;&gt; &gt;&gt; &gt; But I totally disagree, I have been teaching a lot basic Pd around,<br>
&gt;&gt; &gt;&gt; &gt; and<br>
&gt;&gt; &gt;&gt; &gt; people<br>
&gt;&gt; &gt;&gt; &gt; always get confused and think they can just throw &quot;$0&quot; in messages.<br>
&gt;&gt; &gt;&gt; &gt; So I<br>
&gt;&gt; &gt;&gt; &gt; have<br>
&gt;&gt; &gt;&gt; &gt; to state and reinforce that there is an exception that it doesn&#39;t<br>
&gt;&gt; &gt;&gt; &gt; work<br>
&gt;&gt; &gt;&gt; &gt; on<br>
&gt;&gt; &gt;&gt; &gt; messages.<br>
&gt;&gt; &gt;&gt;<br>
&gt;&gt; &gt;&gt; Calling this an exception creates the impression, that $1 in a message<br>
&gt;&gt; &gt;&gt; is the same as in an object.<br>
&gt;&gt; &gt;&gt;<br>
&gt;&gt; &gt;&gt; &gt; Without an exception at all, it should be easier to get it, as I<br>
&gt;&gt; &gt;&gt; &gt; understand.<br>
&gt;&gt; &gt;&gt;<br>
&gt;&gt; &gt;&gt; Agreed. But currently, the only thing that makes $0 in a message<br>
&gt;&gt; &gt;&gt; exceptional<br>
&gt;&gt; &gt;&gt; is the fact, that it has no meaning at all. Making it be replaced by<br>
&gt;&gt; &gt;&gt; the<br>
&gt;&gt; &gt;&gt; canvas identifier wouldn&#39;t make it less exceptional at all.<br>
&gt;&gt; &gt;&gt;<br>
&gt;&gt; &gt;&gt; roman<br>
&gt;&gt; &gt;&gt;<br>
&gt;&gt; &gt;&gt;<br>
&gt;&gt; &gt;&gt;<br>
&gt;&gt; &gt;&gt;<br>
&gt;&gt; &gt;&gt;<br>
&gt;&gt; &gt;&gt; ___________________________________________________________<br>
&gt;&gt; &gt;&gt; Der frühe Vogel fängt den Wurm. Hier gelangen Sie zum neuen Yahoo!<br>
&gt;&gt; &gt;&gt; Mail:<br>
&gt;&gt; &gt;&gt; <a href="http://mail.yahoo.de" target="_blank">http://mail.yahoo.de</a><br>
&gt;&gt; &gt;<br>
&gt;&gt; &gt;<br>
&gt;<br>
&gt;<br>
</div></div></blockquote></div><br></div></div>