<div dir="ltr"><div dir="ltr"><br></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">Em qua., 1 de dez. de 2021 às 17:44, Miller Puckette via Pd-list <<a href="mailto:pd-list@lists.iem.at">pd-list@lists.iem.at</a>> escreveu:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">I think having a "message" object is a better idea.  Only thing is, it<br>
does raise some interesting design questions of its own - like, what of<br>
sending more than one message; how to specify destination names without<br>
using the ';' separator </blockquote><div><br></div><div>Hmm, I don't understand the questions :) </div><div><br></div><div>I am using the ";" separator in my external object. It all works inside the object box just exactly like a message box. So you can also use commas and separate more than one message.</div><div><br></div><div>Now, the idea for my object is that it also works as a message storage object, that is, like a "float" or "symbol" object, but one that can store any kinda of message. Then, it can receive messages from messages in the cold and hot inlet. And we can set ";" and "," by escaping them with "\".</div><div><br></div><div>So sending <b><font color="#e06666" style="background-color:rgb(238,238,238)">1 \, 2 \, 3</font></b> <b>1 \, 2 \ , 3</b> to its hot inler makes it output 3 messages ("1", "2" and "3") and this gets stored.</div><div><br></div><div>By the way, I can also escape "$", so if I send it <b> <font color="#e06666" style="background-color:rgb(238,238,238)">\;  \$0-x 8</font> </b>it sends "8" to a [receive $0-x] object. If you want to specify a literal "$0", you can send it "\\$0"...</div><div><br></div><div>A "bang" in the left inlet outputs the message, but I also made the objcct clickable, so clicking on it sends the message.</div><div><br></div><div>But then, of course this can be simpler, and just have one inlet, for a bang, no click, no cold inlet, for starters, what do. you people think?</div><div><div> </div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">and what if we allowed expressions ...<br></blockquote><div><br></div><div>what do you mean?</div></div><div><br></div><div>cheers</div><div> </div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">
<br>
cheers<br>
Miller<br>
<br>
On Wed, Dec 01, 2021 at 09:34:15PM +0100, Christof Ressi wrote:<br>
> > what if we introduce double dollar syntax to grab patch arguments?<br>
> Actually, I already thought about that. The problem is that "$" is only<br>
> interpreted as a dollar or dollarsym if it is followed by a number. So<br>
> currently "$$" is not a reserved token, meaning that "$$" is a valid symbol.<br>
> We *could* reserve it, but we risk breaking some patches. Assuming that only<br>
> very few patches will be affected by this change, we might decide that<br>
> extending the functionality of message boxes is more important.<br>
> <br>
> Christof<br>
> <br>
> On 01.12.2021 21:22, Alexandre Torres Porres wrote:<br>
> > I like the idea.<br>
> > <br>
> > Em qua., 1 de dez. de 2021 às 17:14, José de Abreu<br>
> > <<a href="mailto:abreubacelar@gmail.com" target="_blank">abreubacelar@gmail.com</a>> escreveu:<br>
> > <br>
> >     I have an idea about $0<br>
> > <br>
> >     what if we introduce double dollar syntax to grab patch arguments?<br>
> >     and then inside messages $$1 would be first abstraction argument,<br>
> >     while $1 is the the first element of the list (as it already is)<br>
> > <br>
> >     this way, $$0 in a message would be what $0 is for an object, $$1<br>
> >     would be what $1 is for an object, and so on (this would be coherent)<br>
> > <br>
> >     this way we add the ability to access $0 from an object as $$0 in<br>
> >     a message and as a bonus make easier to get the patch arguments<br>
> >     inside a message too.. this makes sense? what do you think?<br>
> > <br>
> >     Em qua., 1 de dez. de 2021 16:44, Alexandre Torres Porres<br>
> >     <<a href="mailto:porres@gmail.com" target="_blank">porres@gmail.com</a>> escreveu:<br>
> > <br>
> >         Context: we have an open PR that allows us to expand '$0' in<br>
> >         messages. I'd like to know if it's been officially rejected so<br>
> >         we can close it for good and settle the debate. Then maybe<br>
> >         think of something else.<br>
> > <br>
> >         Miller's response:<br>
> > <br>
> >         Em sáb., 27 de nov. de 2021 às 21:29, Miller Puckette<br>
> >         <<a href="mailto:msp@ucsd.edu" target="_blank">msp@ucsd.edu</a>> escreveu:<br>
> > <br>
> >             I disagree with the "$0" in message box idea.  Why not $1<br>
> >             then?<br>
> >             (Oh, because it already does something different...)<br>
> > <br>
> >             It would be interestnig to allow message boxes to access<br>
> >             canvas creation<br>
> >             arguments somehow, but not that way.<br>
> > <br>
> > <br>
> >         To which me and Christoph argued things like<br>
> >         - /$0 is not a creation argument after all, i.e. it is not<br>
> >         part of "ce_argv". Also, it really //has a different purpose.<br>
> >         (...) $0 would be a special case either way./<br>
> >         - /It was also never documented as an 'argument'. (...) under<br>
> >         a user perspective, we are never aware of it and really expect<br>
> >         to be able to use it inside message boxes so they can<br>
> >         communicate to local [receive] objects (..) We also have<br>
> >         unexpected and weird behaviour in other places. It's all a<br>
> >         matter of documenting./<br>
> >         Now, what I actually have come up as a solution for me, so<br>
> >         far, was designing an external object named "message". It does<br>
> >         all that messages do, they understand comma and semicolons<br>
> >         (and act accordingly). The messages can be set via a right<br>
> >         inlet (with commas and semicolons being possible by escaping<br>
> >         with "\") and the object also acts as a general message<br>
> >         storage object. So the idea is to have something like this<br>
> >         that acts like a message and is an object. Moreover, as an<br>
> >         object, it can also deal with "$1" ... "$2" ... ect as<br>
> >         expected, and as also has been considered here as something<br>
> >         desired.<br>
> > <br>
> >         If this idea resonates well, I can try and open a PR for it<br>
> >         and we can discuss the design details.<br>
> > <br>
> >         see screenshot of the object<br>
> > <br>
> >         cheers<br>
> > <br>
> > <br>
> >         _______________________________________________<br>
> >         <a href="mailto:Pd-list@lists.iem.at" target="_blank">Pd-list@lists.iem.at</a> mailing list<br>
> >         UNSUBSCRIBE and account-management -><br>
> >         <a href="https://urldefense.proofpoint.com/v2/url?u=https-3A__lists.puredata.info_listinfo_pd-2Dlist&d=DwIDaQ&c=-35OiAkTchMrZOngvJPOeA&r=XprZV3Fxus2L1LCw80hE4Q&m=X356gE987R4-v6hM70lWkol4S4SaaoMN6K1GUTwzVOs6vXy64pXeuaSvufiKEdaj&s=oaiog5acgrgvYre_RpIYhOmR4kXfCAvk6whITQhJnyU&e=" rel="noreferrer" target="_blank">https://urldefense.proofpoint.com/v2/url?u=https-3A__lists.puredata.info_listinfo_pd-2Dlist&d=DwIDaQ&c=-35OiAkTchMrZOngvJPOeA&r=XprZV3Fxus2L1LCw80hE4Q&m=X356gE987R4-v6hM70lWkol4S4SaaoMN6K1GUTwzVOs6vXy64pXeuaSvufiKEdaj&s=oaiog5acgrgvYre_RpIYhOmR4kXfCAvk6whITQhJnyU&e=</a><br>
> > <br>
> > <br>
> > _______________________________________________<br>
> > <a href="mailto:Pd-list@lists.iem.at" target="_blank">Pd-list@lists.iem.at</a>  mailing list<br>
> > UNSUBSCRIBE and account-management -><a href="https://urldefense.proofpoint.com/v2/url?u=https-3A__lists.puredata.info_listinfo_pd-2Dlist&d=DwIDaQ&c=-35OiAkTchMrZOngvJPOeA&r=XprZV3Fxus2L1LCw80hE4Q&m=X356gE987R4-v6hM70lWkol4S4SaaoMN6K1GUTwzVOs6vXy64pXeuaSvufiKEdaj&s=oaiog5acgrgvYre_RpIYhOmR4kXfCAvk6whITQhJnyU&e=" rel="noreferrer" target="_blank">https://urldefense.proofpoint.com/v2/url?u=https-3A__lists.puredata.info_listinfo_pd-2Dlist&d=DwIDaQ&c=-35OiAkTchMrZOngvJPOeA&r=XprZV3Fxus2L1LCw80hE4Q&m=X356gE987R4-v6hM70lWkol4S4SaaoMN6K1GUTwzVOs6vXy64pXeuaSvufiKEdaj&s=oaiog5acgrgvYre_RpIYhOmR4kXfCAvk6whITQhJnyU&e=</a><br>
<br>
> _______________________________________________<br>
> <a href="mailto:Pd-list@lists.iem.at" target="_blank">Pd-list@lists.iem.at</a> mailing list<br>
> UNSUBSCRIBE and account-management -> <a href="https://urldefense.proofpoint.com/v2/url?u=https-3A__lists.puredata.info_listinfo_pd-2Dlist&d=DwICAg&c=-35OiAkTchMrZOngvJPOeA&r=XprZV3Fxus2L1LCw80hE4Q&m=X356gE987R4-v6hM70lWkol4S4SaaoMN6K1GUTwzVOs6vXy64pXeuaSvufiKEdaj&s=oaiog5acgrgvYre_RpIYhOmR4kXfCAvk6whITQhJnyU&e=" rel="noreferrer" target="_blank">https://urldefense.proofpoint.com/v2/url?u=https-3A__lists.puredata.info_listinfo_pd-2Dlist&d=DwICAg&c=-35OiAkTchMrZOngvJPOeA&r=XprZV3Fxus2L1LCw80hE4Q&m=X356gE987R4-v6hM70lWkol4S4SaaoMN6K1GUTwzVOs6vXy64pXeuaSvufiKEdaj&s=oaiog5acgrgvYre_RpIYhOmR4kXfCAvk6whITQhJnyU&e=</a> <br>
<br>
<br>
<br>
<br>
_______________________________________________<br>
<a href="mailto:Pd-list@lists.iem.at" target="_blank">Pd-list@lists.iem.at</a> mailing list<br>
UNSUBSCRIBE and account-management -> <a href="https://lists.puredata.info/listinfo/pd-list" rel="noreferrer" target="_blank">https://lists.puredata.info/listinfo/pd-list</a><br>
</blockquote></div></div>