<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
</head>
<body>
<p>
<blockquote type="cite">
<div dir="ltr" data-setdir="false">I guess what I'm trying to
ask is if there's a design constraint that requires the
selector to be null in said code. Or <br>
</div>
better yet-- if the code were changed so that the selector is
*never* null would bad things happen?</blockquote>
The selector is not *required* to selector to be NULL, but it
*can* be NULL, with the only merit that it saves you a few
characters.<br>
</p>
<p>
<blockquote type="cite">if the code were changed so that the
selector is *never* null would bad things happen?</blockquote>
In the above mentioned discussion, IOhannes has offered two
patches: 1) don't use NULL selectors internally, 2) gracefully
handle NULL selectors (e.g. coming from externals)</p>
<p>Those patches obviously haven't been merged, but I think they
should be reconsidered.<br>
</p>
<p>Christof<br>
</p>
<p><br>
</p>
<div class="moz-cite-prefix">On 21.06.2020 00:47, Jonathan Wilkes
wrote:<br>
</div>
<blockquote type="cite"
cite="mid:2036973463.596765.1592693243746@mail.yahoo.com">
<meta http-equiv="content-type" content="text/html; charset=UTF-8">
<div class="yahoo-style-wrap" style="font-family:Helvetica Neue,
Helvetica, Arial, sans-serif;font-size:13px;">
<div id="ydp38124f0eyahoo_quoted_2975836818"
class="ydp38124f0eyahoo_quoted">
<div style="font-family:'Helvetica Neue', Helvetica, Arial,
sans-serif;font-size:13px;color:#26282a;">
<div> > On Saturday, June 20, 2020, 6:34:02 PM EDT,
Christof Ressi <a class="moz-txt-link-rfc2396E" href="mailto:info@christofressi.com"><info@christofressi.com></a> wrote: </div>
<div><br>
</div>
<div>
<div id="ydp38124f0eyiv0520310689">
<div>
<p> </p>
<blockquote type="cite">
<div dir="ltr">In pd_defaultbang, what is the
reasoning for calling the list method with a null
selector while calling the <br clear="none">
</div>
<div dir="ltr">anything method with an "&s_bang"
selector?</div>
</blockquote>
<div> > contrary to the list method, the selector
for the anything method *does* carry significant
meaning. At the very least, it's necessary for the
default anything method (which prints an error
message). <br>
</div>
<br>
<div dir="ltr" data-setdir="false">I guess what I'm
trying to ask is if there's a design constraint that
requires the selector to be null in said code. Or <br>
</div>
<div dir="ltr" data-setdir="false">better yet-- if the
code were changed so that the selector is *never*
null would bad things happen?<br>
</div>
<div dir="ltr" data-setdir="false"><br>
</div>
<div dir="ltr" data-setdir="false">Thanks,<br>
</div>
<div dir="ltr" data-setdir="false">Jonathan<br>
</div>
<p>Christof<br clear="none">
</p>
<div class="ydp38124f0eyiv0520310689yqt9756748392"
id="ydp38124f0eyiv0520310689yqtfd12833">
<div class="ydp38124f0eyiv0520310689moz-cite-prefix">On
21.06.2020 00:29, Christof Ressi wrote:<br
clear="none">
</div>
<blockquote type="cite"> </blockquote>
</div>
</div>
<div class="ydp38124f0eyiv0520310689yqt9756748392"
id="ydp38124f0eyiv0520310689yqtfd39586">
<div>
<p>Ah, sorry, I misread you're last reply. I thought
you were repeating your first question :-)<br
clear="none">
</p>
<div class="ydp38124f0eyiv0520310689moz-cite-prefix">On
21.06.2020 00:24, Christof Ressi wrote:<br
clear="none">
</div>
<blockquote type="cite"> </blockquote>
</div>
<div>
<p>Did you read the discussion I've linked too? To
quote Miller:</p>
<p> </p>
<blockquote type="cite">I'm not sure this is a real
problem - _anything and _list methods simply
aren't guaranteed<br clear="none">
anything about the "s" argument - it shouldn't
ever be dereferenced.</blockquote>
<p>I think this is the answer to your question.
Since the selector of a list message is actually
redundant, you're free to pass NULL.<br
clear="none">
</p>
<p>Christof<br clear="none">
</p>
<div class="ydp38124f0eyiv0520310689moz-cite-prefix">On
21.06.2020 00:16, Jonathan Wilkes wrote:<br
clear="none">
</div>
<blockquote type="cite"> </blockquote>
</div>
<div>
<div
class="ydp38124f0eyiv0520310689yahoo-style-wrap"
style="font-family:Helvetica Neue, Helvetica,
Arial, sans-serif;font-size:13px;">
<div
class="ydp38124f0eyiv0520310689ydpd7e67a11yahoo_quoted"
id="ydp38124f0eyiv0520310689ydpd7e67a11yahoo_quoted_3677743177">
<div style="font-family:'Helvetica Neue',
Helvetica, Arial,
sans-serif;font-size:13px;color:#26282a;">
<div> > On Saturday, June 20, 2020, 4:02:44
PM EDT, Christof Ressi <a shape="rect"
class="ydp38124f0eyiv0520310689moz-txt-link-rfc2396E"
href="mailto:info@christofressi.com"
rel="nofollow" target="_blank"
moz-do-not-send="true"><info@christofressi.com></a>
wrote: </div>
<div><br clear="none">
</div>
<div><br clear="none">
</div>
<div>
<div
id="ydp38124f0eyiv0520310689ydpd7e67a11yiv1500399524">
<div>
<div>> Hi, the selector for a list
method certainly shouldn't be "bang",
rather it should be "list". <br
clear="none">
</div>
<div><br clear="none">
</div>
<div dir="ltr">Let's back up.</div>
<div dir="ltr"><br clear="none">
</div>
<div dir="ltr">Miller,</div>
<div dir="ltr"><br clear="none">
</div>
<div dir="ltr">In pd_defaultbang, what
is the reasoning for calling the list
method with a null selector while
calling the <br clear="none">
</div>
<div dir="ltr">anything method with an
"&s_bang" selector?</div>
<div dir="ltr"><br clear="none">
</div>
<div dir="ltr">Thanks,</div>
<div dir="ltr">Jonathan<br clear="none">
</div>
<p>> There has been a discussion
about this in the past and I have
agree with IOhannes that Pd shouldn't
send NULL selectors: <a shape="rect"
class="ydp38124f0eyiv0520310689ydpd7e67a11yiv1500399524moz-txt-link-freetext"
href="https://sourceforge.net/p/pure-data/patches/555/" rel="nofollow"
target="_blank"
moz-do-not-send="true">https://sourceforge.net/p/pure-data/patches/555/</a>.<br
clear="none">
</p>
<p>> Christof<br clear="none">
</p>
<div
class="ydp38124f0eyiv0520310689ydpd7e67a11yiv1500399524yqt5097824407"
id="ydp38124f0eyiv0520310689ydpd7e67a11yiv1500399524yqt55172">
<div
class="ydp38124f0eyiv0520310689ydpd7e67a11yiv1500399524moz-cite-prefix">On
20.06.2020 21:19, Jonathan Wilkes
via Pd-list wrote:<br clear="none">
</div>
<blockquote type="cite"> </blockquote>
</div>
</div>
<div
class="ydp38124f0eyiv0520310689ydpd7e67a11yiv1500399524yqt5097824407"
id="ydp38124f0eyiv0520310689ydpd7e67a11yiv1500399524yqt09912">
<div>
<div
class="ydp38124f0eyiv0520310689ydpd7e67a11yiv1500399524yahoo-style-wrap"
style="font-family:Helvetica Neue,
Helvetica, Arial,
sans-serif;font-size:13px;">
<div dir="ltr">Hi Miller,</div>
<div dir="ltr"><br clear="none">
</div>
<div dir="ltr">In pd_defaultbang of
m_class.c, why does the list
method get called with "0" for a
selector instead of "&s_bang"
for the c_listmethod invocation?</div>
<div dir="ltr"><br clear="none">
</div>
<div dir="ltr">Best,</div>
<div dir="ltr">Jonathan<br
clear="none">
</div>
</div>
<br clear="none">
<fieldset
class="ydp38124f0eyiv0520310689ydpd7e67a11yiv1500399524mimeAttachmentHeader"></fieldset>
<pre class="ydp38124f0eyiv0520310689ydpd7e67a11yiv1500399524moz-quote-pre">_______________________________________________
<a shape="rect" class="ydp38124f0eyiv0520310689ydpd7e67a11yiv1500399524moz-txt-link-abbreviated" href="mailto:Pd-list@lists.iem.at" rel="nofollow" target="_blank" moz-do-not-send="true">Pd-list@lists.iem.at</a> mailing list
UNSUBSCRIBE and account-management -> <a shape="rect" class="ydp38124f0eyiv0520310689ydpd7e67a11yiv1500399524moz-txt-link-freetext" href="https://lists.puredata.info/listinfo/pd-list" rel="nofollow" target="_blank" moz-do-not-send="true">https://lists.puredata.info/listinfo/pd-list</a>
</pre>
</div>
</div>
</div>
<div
class="ydp38124f0eyiv0520310689ydpd7e67a11yqt5097824407"
id="ydp38124f0eyiv0520310689ydpd7e67a11yqt15934">_______________________________________________<br
clear="none">
<a shape="rect"
href="mailto:Pd-list@lists.iem.at"
rel="nofollow" target="_blank"
moz-do-not-send="true">Pd-list@lists.iem.at</a>
mailing list<br clear="none">
UNSUBSCRIBE and account-management -> <a
shape="rect"
href="https://lists.puredata.info/listinfo/pd-list"
rel="nofollow" target="_blank"
moz-do-not-send="true">https://lists.puredata.info/listinfo/pd-list</a><br
clear="none">
</div>
</div>
</div>
</div>
</div>
<br clear="none">
<fieldset
class="ydp38124f0eyiv0520310689mimeAttachmentHeader"></fieldset>
<pre class="ydp38124f0eyiv0520310689moz-quote-pre">_______________________________________________
<a shape="rect" class="ydp38124f0eyiv0520310689moz-txt-link-abbreviated" href="mailto:Pd-list@lists.iem.at" rel="nofollow" target="_blank" moz-do-not-send="true">Pd-list@lists.iem.at</a> mailing list
UNSUBSCRIBE and account-management -> <a shape="rect" class="ydp38124f0eyiv0520310689moz-txt-link-freetext" href="https://lists.puredata.info/listinfo/pd-list" rel="nofollow" target="_blank" moz-do-not-send="true">https://lists.puredata.info/listinfo/pd-list</a>
</pre>
<br clear="none">
<fieldset
class="ydp38124f0eyiv0520310689mimeAttachmentHeader"></fieldset>
<pre class="ydp38124f0eyiv0520310689moz-quote-pre">_______________________________________________
<a shape="rect" class="ydp38124f0eyiv0520310689moz-txt-link-abbreviated" href="mailto:Pd-list@lists.iem.at" rel="nofollow" target="_blank" moz-do-not-send="true">Pd-list@lists.iem.at</a> mailing list
UNSUBSCRIBE and account-management -> <a shape="rect" class="ydp38124f0eyiv0520310689moz-txt-link-freetext" href="https://lists.puredata.info/listinfo/pd-list" rel="nofollow" target="_blank" moz-do-not-send="true">https://lists.puredata.info/listinfo/pd-list</a>
</pre>
</div>
</div>
</div>
<div class="ydp38124f0eyqt9756748392"
id="ydp38124f0eyqtfd19653">_______________________________________________<br
clear="none">
<a shape="rect" href="mailto:Pd-list@lists.iem.at"
rel="nofollow" target="_blank" moz-do-not-send="true">Pd-list@lists.iem.at</a>
mailing list<br clear="none">
UNSUBSCRIBE and account-management -> <a
shape="rect"
href="https://lists.puredata.info/listinfo/pd-list"
rel="nofollow" target="_blank" moz-do-not-send="true">https://lists.puredata.info/listinfo/pd-list</a><br
clear="none">
</div>
</div>
</div>
</div>
</div>
</blockquote>
</body>
</html>