[plt-scheme] MzScheme as embedded engine for LilyPond ?
eli at barzilay.org writes:
> > > > lilypond --debug foo.ly
> > > >
> > > > would use the MzScheme with locations, and
> > > >
> > > > lilypond foo.ly
> > > >
> > > > would use the non-debugging version. Is this possible at all?
> > >
> > > mzscheme -M errortrace
> >
> > This produces line/column numbers, but no stacktrace, for the above
> > example, I now get
> >
> > byrd:~/usr/src/lilypond$ mzscheme -M errortrace -f b.scm
> > Welcome to MzScheme version 209, Copyright (c) 2004 PLT Scheme, Inc.
> > procedure application: expected procedure, given: 0 (no arguments)
> > /home/hanwen/usr/src/savannah/lily/lilypond/b.scm:3:2: (a)
>
> My guess is that you have some simple code like:
>
> (define (foo x)
> (x))
> (define (bar x)
> (if (< x 1)
> (foo 1)
> (foo 2)))
> (bar 0)
yup.
> and the failure is at a point where there is no stack to show, since
> all calls are tail calls.
Good point. Apparently, GUILE is not fully compliant in its --debug
mode.
--
Han-Wen Nienhuys | hanwen at xs4all.nl | http://www.xs4all.nl/~hanwen