[gambit-list] Thinking of changing pp
feeley at iro.umontreal.ca
Sun Jun 1 15:53:18 EDT 2008
On 1-Jun-08, at 3:34 PM, hrapof at common-lisp.ru wrote:
> Цитирую Marc Feeley <feeley at iro.umontreal.ca>:
>> (define (square x)
>> (pp x result: (* x x)))
>> and get as output:
>> x: 10
>> result: 100
> In Common Lisp I'd turned on tracing for SQUARE, which prints function
> arguments and results.
> I'm not much of a Gambit user, so I don't know whether TRACE machinery
> is in place; if not, it'd be worth-while to add it.
Gambit has trace:
> (define (square x) (* x x))
> (trace square)
> (square 10)
| > (square 10)
In some cases you want to display additional information, like values
computed by the procedure. So pp is more general.
More information about the Gambit-list