<div>                > On Sunday, June 21, 2020, 12:13:19 PM EDT, Miller Puckette via Pd-list <pd-list@lists.iem.at> wrote:<br><br>> As far as I know, there's no design necessity that says it has to be zero.<br>The selector in this case is unspecified.  One could invent one ("foo"<br>would be fine) or leave it at zero.<br><br>> Perhaps objects should not depend on knowing a selector that might be<br>undefined.<br><br>Thanks, Miller.<br><br>-Jonathan<br><br>> cheers<br>> Miller<br><br>On Sun, Jun 21, 2020 at 12:55:47AM +0200, Christof Ressi wrote:<br>> > I guess what I'm trying to ask is if there's a design constraint that<br>> > requires the selector to be null in said code. Or<br>> > better yet-- if the code were changed so that the selector is *never*<br>> > null would bad things happen?<br>> The selector is not *required* to selector to be NULL, but it *can* be NULL,<br>> with the only merit that it saves you a few characters.<br>><br>> > if the code were changed so that the selector is *never* null would bad<br>> > things happen?<br>> In the above mentioned discussion, IOhannes has offered two patches: 1)<br>> don't use NULL selectors internally, 2) gracefully handle NULL selectors<br>> (e.g. coming from externals)<br>><br>> Those patches obviously haven't been merged, but I think they should be<br>> reconsidered.<br>><br>> Christof<br>><br>><br>> On 21.06.2020 00:47, Jonathan Wilkes wrote:<br>> > > On Saturday, June 20, 2020, 6:34:02 PM EDT, Christof Ressi<br>> > <info@christofressi.com> wrote:<br>> ><br>> > > In pd_defaultbang, what is the reasoning for calling the list method<br>> > > with a null selector while calling the<br>> > > anything method with an "&s_bang" selector?<br>> > > contrary to the list method, the selector for the anything method<br>> > *does* carry significant meaning. At the very least, it's necessary for<br>> > the default anything method (which prints an error message).<br>> ><br>> > I guess what I'm trying to ask is if there's a design constraint that<br>> > requires the selector to be null in said code. Or<br>> > better yet-- if the code were changed so that the selector is *never*<br>> > null would bad things happen?<br>> ><br>> > Thanks,<br>> > Jonathan<br>> ><br>> > Christof<br>> ><br>> > On 21.06.2020 00:29, Christof Ressi wrote:<br>> ><br>> > Ah, sorry, I misread you're last reply. I thought you were repeating<br>> > your first question :-)<br>> ><br>> > On 21.06.2020 00:24, Christof Ressi wrote:<br>> ><br>> > Did you read the discussion I've linked too? To quote Miller:<br>> ><br>> > > I'm not sure this is a real problem - _anything and _list methods<br>> > > simply aren't guaranteed<br>> > > anything about the "s" argument - it shouldn't ever be dereferenced.<br>> ><br>> > I think this is the answer to your question. Since the selector of a<br>> > list message is actually redundant, you're free to pass NULL.<br>> ><br>> > Christof<br>> ><br>> > On 21.06.2020 00:16, Jonathan Wilkes wrote:<br>> > > On Saturday, June 20, 2020, 4:02:44 PM EDT, Christof Ressi<br>> > <info@christofressi.com> <mailto:info@christofressi.com> wrote:<br>> ><br>> ><br>> > > Hi, the selector for a list method certainly shouldn't be "bang",<br>> > rather it should be "list".<br>> ><br>> > Let's back up.<br>> ><br>> > Miller,<br>> ><br>> > In pd_defaultbang, what is the reasoning for calling the list method<br>> > with a null selector while calling the<br>> > anything method with an "&s_bang" selector?<br>> ><br>> > Thanks,<br>> > Jonathan<br>> ><br>> > > There has been a discussion about this in the past and I have agree<br>> > with IOhannes that Pd shouldn't send NULL selectors: https://urldefense.com/v3/__https://sourceforge.net/p/pure-data/patches/555/__;!!Mih3wA!QsXvdm7PGfv5RyslUUuP4q13RXWyW2YlDB0Amsou_ol-eFRc-JQZBR6LaLUw$<br>> > .<br>> ><br>> > > Christof<br>> ><br>> > On 20.06.2020 21:19, Jonathan Wilkes via Pd-list wrote:<br>> > Hi Miller,<br>> ><br>> > In pd_defaultbang of m_class.c, why does the list method get called with<br>> > "0" for a selector instead of "&s_bang" for the c_listmethod invocation?<br>> ><br>> > Best,<br>> > Jonathan<br>> ><br>> > _______________________________________________<br>> > Pd-list@lists.iem.at  <mailto:Pd-list@lists.iem.at>  mailing list<br>> > UNSUBSCRIBE and account-management ->https://urldefense.com/v3/__https://lists.puredata.info/listinfo/pd-list__;!!Mih3wA!QsXvdm7PGfv5RyslUUuP4q13RXWyW2YlDB0Amsou_ol-eFRc-JQZBcArg5HE$<br>> > _______________________________________________<br>> > Pd-list@lists.iem.at <mailto:Pd-list@lists.iem.at> mailing list<br>> > UNSUBSCRIBE and account-management -> https://urldefense.com/v3/__https://lists.puredata.info/listinfo/pd-list__;!!Mih3wA!QsXvdm7PGfv5RyslUUuP4q13RXWyW2YlDB0Amsou_ol-eFRc-JQZBcArg5HE$<br>> ><br>> > _______________________________________________<br>> > Pd-list@lists.iem.at  <mailto:Pd-list@lists.iem.at>  mailing list<br>> > UNSUBSCRIBE and account-management ->https://urldefense.com/v3/__https://lists.puredata.info/listinfo/pd-list__;!!Mih3wA!QsXvdm7PGfv5RyslUUuP4q13RXWyW2YlDB0Amsou_ol-eFRc-JQZBcArg5HE$<br>> ><br>> > _______________________________________________<br>> > Pd-list@lists.iem.at  <mailto:Pd-list@lists.iem.at>  mailing list<br>> > UNSUBSCRIBE and account-management ->https://urldefense.com/v3/__https://lists.puredata.info/listinfo/pd-list__;!!Mih3wA!QsXvdm7PGfv5RyslUUuP4q13RXWyW2YlDB0Amsou_ol-eFRc-JQZBcArg5HE$<br>> > _______________________________________________<br>> > Pd-list@lists.iem.at <mailto:Pd-list@lists.iem.at> mailing list<br>> > UNSUBSCRIBE and account-management -> https://urldefense.com/v3/__https://lists.puredata.info/listinfo/pd-list__;!!Mih3wA!QsXvdm7PGfv5RyslUUuP4q13RXWyW2YlDB0Amsou_ol-eFRc-JQZBcArg5HE$<br><br>> _______________________________________________<br>> Pd-list@lists.iem.at mailing list<br>> UNSUBSCRIBE and account-management -> https://urldefense.com/v3/__https://lists.puredata.info/listinfo/pd-list__;!!Mih3wA!QsXvdm7PGfv5RyslUUuP4q13RXWyW2YlDB0Amsou_ol-eFRc-JQZBcArg5HE$<br><br><br><br><br><br>_______________________________________________<br>Pd-list@lists.iem.at mailing list<br>UNSUBSCRIBE and account-management -> https://lists.puredata.info/listinfo/pd-list<br>            </div>