[gambit-list] repl and macros

Marc Feeley feeley at iro.umontreal.ca
Sat Apr 11 15:07:58 EDT 2020


> On Apr 11, 2020, at 1:56 PM, Jörg F. Wittenberger <Joerg.Wittenberger at softeyes.net> wrote:
> 
> Hi,
> 
> yet another gambit newbee question.
> 
> From lambdanative console template I learned how to start a `repl` in a
> statically linked binary.  (N.B. "statically linked" MAY be boring;
> maybe not.)
> 
> The pattern is:
> 
> (define (repl-loop)
>  (with-exception-catcher
>   (lambda (exn) (DISPLAY-EXCEPTION))
>   ##repl-debug)
>  (repl-loop))
> 
> (repl-loop)
> 
> Use of `define-macro` as input yields "Ill-placed define-macro"
> exception.
> 
> Thanks
> 
> /Jörg
> 

Use:

(##repl-debug #f #t)

Marc



More information about the Gambit-list mailing list