[plt-scheme] FFI error in 4.0
On Jul 3, Jakub Piotr C?apa wrote:
> Eli Barzilay wrote:
> > On Jul 2, Jakub Piotr C?apa wrote:
> >> #lang scheme/base
> >> (require scheme/foreign)
> >>
> >> #;(define-cpointer-type _test #f #f #f) ; this works
> >> (define-cpointer-type _test) ; this doesn't and gives a
> >> ; really obscure error message
> >
> > Why is it obscure? It said exactly what was wrong...
>
> ... but left me without any location information (the broken code was a
> little longer than the minimal test case ;).
Well, yeah, but the pattern was there, and you pointed and
`define-cpointer-type'. So it took me about 30 seconds to open the
file, find the error, and fix it (and most of that was spent in
openning the file and writing a commit message...).
--
((lambda (x) (x x)) (lambda (x) (x x))) Eli Barzilay:
http://www.barzilay.org/ Maze is Life!