Okay, so I have what I need, in the sense that I can write an alternative function that gets called during 'trace', as seen in attached "trace.scm"<br><br>Here, however, are things I don't get:<br><br>
1) in adition to proc & args, can I also get the current stack frame?<br><br>2) looking at "broken.scm" and "works.scm" -- I just copied/pasted the make-default-entry-hook from lib/_repl.scm -- why does one of them work for tracing and the other does not?<br>
<br>Thanks!<br><br><div class="gmail_quote">On Fri, Feb 20, 2009 at 9:08 PM, Marc Feeley <span dir="ltr"><<a href="mailto:feeley@iro.umontreal.ca">feeley@iro.umontreal.ca</a>></span> wrote:<br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
<div class="Ih2E3d"><br>
On 20-Feb-09, at 11:44 PM, lowly coder wrote:<br>
<br>
<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
So I'm looking more in lib/_repl.scm, in particular at:<br>
<br>
(define-prim (##interp-procedure-default-entry-hook proc)<br>
  (let ((hook (##interp-procedure-entry-hook proc)))<br>
    (if (and hook<br>
             (##closure? hook)<br>
             (##eq? (##subprocedure-parent (##closure-code hook))<br>
                    ##make-default-entry-hook))<br>
      hook<br>
      #f)))<br>
<br>
<br>
and I'm wondering two things:<br>
<br>
1) in trace, where is the pp / display / write<br>
<br>
2) after the proc is setup by ##interp-procedure-default-entry-hook, where in the interpreter is proc called?<br>
</blockquote>
<br></div>
I won't spoil your fun... in only 40 minutes you've learned a lot about Gambit!  I'll give you the answer tomorrow night if you can't solve it yourself...<br><font color="#888888">
<br>
Marc<br>
<br>
</font></blockquote></div><br>