<html>
  <head>
    <meta content="text/html; charset=UTF-8" http-equiv="Content-Type">
  </head>
  <body bgcolor="#FFFFFF" text="#000000">
    <div class="moz-cite-prefix">On 01/18/2013 04:25 PM, Björn
      Gustavsson wrote:<br>
    </div>
    <blockquote
cite="mid:CA+yh78TOEXgbV_+6BMkpMvXe7mjZ+mSnKwFg-PexYE-k_nFwHg@mail.gmail.com"
      type="cite">
      <div dir="ltr"><br>
        <div class="gmail_extra">
          <div class="gmail_quote">On Tue, Jan 15, 2013 at 1:33 PM, Erik
            Reitsma <span dir="ltr"><<a moz-do-not-send="true"
                href="mailto:erlang@ernovation.com" target="_blank">erlang@ernovation.com</a>></span>
            wrote:<br>
            <blockquote class="gmail_quote" style="margin:0px 0px 0px
0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex">
              <div bgcolor="#FFFFFF" text="#000000">
                <div class="im">
                  <div>On 01/15/2013 10:41 AM, Joe Armstrong wrote:<br>
                  </div>
                  <blockquote type="cite">
                    <div class="gmail_quote">
                      <div>Golly - I read the code - you modified
                        error_handler.erl !!!! <br>
                        <br>
                        So what happens is ...<br>
                        <br>
                           I call android:fooBar(Args) - fooBar is not
                        defined in android.erl<br>
                           so it's caught in error_handler and then
                        android:rpc(fooBar, [...]) is called<br>
                           and this ends up as a Json call to a socket -<br>
                        <br>
                      </div>
                    </div>
                  </blockquote>
                </div>
                Yes, that is what happens. <br>
                <div class="im">
                  <blockquote type="cite">
                    <div class="gmail_quote">
                      <div><br>
                      </div>
                    </div>
                  </blockquote>
                </div>
              </div>
            </blockquote>
            <div style="">It might interest you to know, that in R16,
              you can have a handler for</div>
            <div style="">undefined functions in each module. (We needed
              that to implement the parse</div>
            <div style="">transformation for parameterized modules.)</div>
            <div style=""><br>
            </div>
            <div style="">This new feature has just been merged to the
              master branch:</div>
            <div style=""><br>
            </div>
            <div> <a moz-do-not-send="true"
href="https://github.com/erlang/otp/commit/209a479080214ab901116d48b90e91d6c056278d">https://github.com/erlang/otp/commit/209a479080214ab901116d48b90e91d6c056278d</a></div>
            <div><br>
            </div>
          </div>
        </div>
      </div>
    </blockquote>
    <br>
    That's interesting. I will use it to implement this feature.<br>
    <br>
    I modified the error_handler also to look for the source if a
    compiled module was not found. I will probably remove that feature
    and only compile the module to be run. I can do that in my android
    module, so I will be able to leave error_handler.erl unmodified.
    Quite a relief for everybody, I am sure. :-)<br>
    <br>
    *Erik.<br>
  </body>
</html>