<html>
  <head>
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
  </head>
  <body>
    <p>
      <blockquote type="cite">what if we introduce double dollar syntax
        to grab patch arguments?</blockquote>
      Actually, I already thought about that. The problem is that "$" is
      only interpreted as a dollar or dollarsym if it is followed by a
      number. So currently "$$" is not a reserved token, meaning that
      "$$" is a valid symbol. We *could* reserve it, but we risk
      breaking some patches. Assuming that only very few patches will be
      affected by this change, we might decide that extending the
      functionality of message boxes is more important.</p>
    <p>Christof<br>
    </p>
    <div class="moz-cite-prefix">On 01.12.2021 21:22, Alexandre Torres
      Porres wrote:<br>
    </div>
    <blockquote type="cite"
cite="mid:CAEAsFmhTOxZAzc8spM27D3665T89acS+jD-kZ-NzNQ=LW54+Fw@mail.gmail.com">
      <meta http-equiv="content-type" content="text/html; charset=UTF-8">
      <div dir="ltr">I like the idea. <br>
      </div>
      <br>
      <div class="gmail_quote">
        <div dir="ltr" class="gmail_attr">Em qua., 1 de dez. de 2021 às
          17:14, José de Abreu <<a
            href="mailto:abreubacelar@gmail.com" moz-do-not-send="true"
            class="moz-txt-link-freetext">abreubacelar@gmail.com</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">
          <div dir="auto">I have an idea about $0
            <div dir="auto"><br>
            </div>
            <div dir="auto">what if we introduce double dollar syntax to
              grab patch arguments? and then inside messages $$1 would
              be first abstraction argument, while $1 is the the first
              element of the list (as it already is)</div>
            <div dir="auto"><br>
            </div>
            <div dir="auto">this way, $$0 in a message would be what $0
              is for an object, $$1 would be what $1 is for an object,
              and so on (this would be coherent)</div>
            <div dir="auto"><br>
            </div>
            <div dir="auto">this way we add the ability to access $0
              from an object as $$0 in a message and as a bonus make
              easier to get the patch arguments inside a message too..
              this makes sense? what do you think?</div>
          </div>
          <br>
          <div class="gmail_quote">
            <div dir="ltr" class="gmail_attr">Em qua., 1 de dez. de 2021
              16:44, Alexandre Torres Porres <<a
                href="mailto:porres@gmail.com" target="_blank"
                moz-do-not-send="true" class="moz-txt-link-freetext">porres@gmail.com</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">
              <div dir="ltr">
                <div>Context: we have an open PR that allows us to
                  expand '$0' in messages. I'd like to know if it's been
                  officially rejected so we can close it for good and
                  settle the debate. Then maybe think of something else.</div>
                <div><br>
                </div>
                Miller's response:
                <div><br>
                  <div class="gmail_quote">
                    <div dir="ltr" class="gmail_attr">Em sáb., 27 de
                      nov. de 2021 às 21:29, Miller Puckette <<a
                        href="mailto:msp@ucsd.edu" rel="noreferrer"
                        target="_blank" moz-do-not-send="true"
                        class="moz-txt-link-freetext">msp@ucsd.edu</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 disagree with
                      the "$0" in message box idea.  Why not $1 then?<br>
                      (Oh, because it already does something
                      different...)</blockquote>
                    <blockquote class="gmail_quote" style="margin:0px
                      0px 0px 0.8ex;border-left:1px solid
                      rgb(204,204,204);padding-left:1ex">
                      It would be interestnig to allow message boxes to
                      access canvas creation<br>
                      arguments somehow, but not that way.<br>
                    </blockquote>
                    <div><br>
                    </div>
                    <div>To which me and Christoph argued things like <br>
                      - <i>$0 is not a creation argument after all,
                        i.e. it is not part of "ce_argv". Also, it
                        really </i><i>has a different purpose. (...) $0
                        would be a special case either way.</i></div>
                  </div>
                  <div class="gmail_quote">- <i>It was also never
                      documented as an 'argument'. (...) under a user
                      perspective, we are never aware of it and really
                      expect to be able to use it inside message boxes
                      so they can communicate to local [receive] objects
                      (..) We also have unexpected and weird behaviour
                      in other places. It's all a matter of documenting.</i></div>
                  <div class="gmail_quote">
                    <div> </div>
                    <div>Now, what I actually have come up as a solution
                      for me, so far, was designing an external object
                      named "message". It does all that messages do,
                      they understand comma and semicolons (and act
                      accordingly). The messages can be set via a right
                      inlet (with commas and semicolons being possible
                      by escaping with "\") and the object also acts as
                      a general message storage object. So the idea is
                      to have something like this that acts like a
                      message and is an object. Moreover, as an object,
                      it can also deal with "$1" ... "$2" ... ect as
                      expected, and as also has been considered here as
                      something desired.</div>
                    <div><br>
                    </div>
                    <div>If this idea resonates well, I can try and open
                      a PR for it and we can discuss the design details.</div>
                    <div><br>
                    </div>
                    <div>see screenshot of the object</div>
                    <div><br>
                    </div>
                    <div>cheers</div>
                    <div><br>
                    </div>
                    <div><br>
                    </div>
                  </div>
                </div>
              </div>
              _______________________________________________<br>
              <a href="mailto:Pd-list@lists.iem.at" rel="noreferrer"
                target="_blank" moz-do-not-send="true"
                class="moz-txt-link-freetext">Pd-list@lists.iem.at</a>
              mailing list<br>
              UNSUBSCRIBE and account-management -> <a
                href="https://lists.puredata.info/listinfo/pd-list"
                rel="noreferrer noreferrer" target="_blank"
                moz-do-not-send="true" class="moz-txt-link-freetext">https://lists.puredata.info/listinfo/pd-list</a><br>
            </blockquote>
          </div>
        </blockquote>
      </div>
      <br>
      <fieldset class="moz-mime-attachment-header"></fieldset>
      <pre class="moz-quote-pre" wrap="">_______________________________________________
<a class="moz-txt-link-abbreviated" href="mailto:Pd-list@lists.iem.at">Pd-list@lists.iem.at</a> mailing list
UNSUBSCRIBE and account-management -> <a class="moz-txt-link-freetext" href="https://lists.puredata.info/listinfo/pd-list">https://lists.puredata.info/listinfo/pd-list</a>
</pre>
    </blockquote>
  </body>
</html>