<html>
  <head>
    <meta content="text/html; charset=utf-8" http-equiv="Content-Type">
  </head>
  <body bgcolor="#FFFFFF" text="#000000">
    <br>
    <div class="moz-cite-prefix">Le 10/12/2014 00:03, i go bananas a
      écrit :<br>
    </div>
    <blockquote
cite="mid:CAO=D1cjxavpqdx+PsgpEs-WRoABQ2hUMMJy-nusHGK8KVrD0mg@mail.gmail.com"
      type="cite">Loadbang doesn't trigger when you create abstractions
      dynamically.  
      <div><br>
      </div>
      <div>Use [initbang], or send a message after creating the
        abstraction to trigger the loadbang.  (Look up pd-msg in the
        help docs) <br>
        <br>
      </div>
    </blockquote>
    <br>
    It should be actually possible to trigger [loadbang] in abstraction
    by sending [loadbang( message to abstraction<br>
    <br>
    <blockquote
cite="mid:CAO=D1cjxavpqdx+PsgpEs-WRoABQ2hUMMJy-nusHGK8KVrD0mg@mail.gmail.com"
      type="cite">
      <div>On Wednesday, December 10, 2014, Alexandros Drymonitis <<a
          moz-do-not-send="true" href="mailto:adrcki@gmail.com">adrcki@gmail.com</a>>
        wrote:<br>
        <blockquote class="gmail_quote" style="margin:0 0 0
          .8ex;border-left:1px #ccc solid;padding-left:1ex">
          <div dir="ltr">
            <div>
              <div>
                <div>
                  <div>
                    <div>
                      <div>I'm creating an abstraction (say it's called
                        test-parent.pd) which creates another
                        abstraction (called test-child.pd) inside a
                        subpatch, a number of times according to the
                        argument passed to test-parent.pd.<br>
                      </div>
                      What I want to do is store $0 of test-parent.pd
                      and pass it to all instances of test-child.pd to
                      set a name for [throw~] which is in the test-child
                      abstraction, like this (this is in
                      test-parent.pd):<br>
                      <br>
                    </div>
                    [loop] <- this is an until loop with a counter<br>
                    |<br>
                  </div>
                  <div>[t   f    b]<br>
                    |         |<br>
                  </div>
                  <div>[* 20] [$0]<br>
                  </div>
                  <div>|         |<br>
                    |         |<br>
                  </div>
                  <div>[pack f f]<br>
                    |<br>
                  </div>
                  [obj 100 $1 test-child $2(<br>
                  |<br>
                </div>
                [s subpatch]<br>
                <br>
              </div>
              <div>Inside test-child.pd I have this:<br>
                <br>
              </div>
              <div>[loadbang]<br>
                |<br>
                [$1 ]<br>
                |<br>
              </div>
              <div>[set $1-sum(<br>
                |<br>
              </div>
              <div>[throw~]<br>
              </div>
              <div><br>
              </div>
              <div>Say that $0 of test parent is 1004. What happens is
                that, even though all test-child.pd abstractions are
                created like this [test-child 1004], I get the following
                error: throw~ 1127-sum: no matching catch<br>
              </div>
              <div>There is a [catch~ $0-sum] in test-parent.pd, which,
                I guess, is updated accoridng to $0, but [test-child]
                seems to have been stuck to 1127 (I'm clearing the
                subpatch where all [test-child]s are being created, and
                then create the abstractions)...<br>
              </div>
              <div>Any clues?<br>
              </div>
            </div>
          </div>
        </blockquote>
      </div>
      <br>
      <fieldset class="mimeAttachmentHeader"></fieldset>
      <br>
      <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="http://lists.puredata.info/listinfo/pd-list">http://lists.puredata.info/listinfo/pd-list</a>
</pre>
    </blockquote>
    <br>
  </body>
</html>