[plt-scheme] FFI error in 4.0

From: Eli Barzilay (eli at barzilay.org)
Date: Thu Jul 3 20:51:14 EDT 2008

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!


Posted on the users mailing list.