On Sat, 2009-12-26 at 02:03 -0600, Eduardo Cavazos wrote: > Hello, > > This bit of code: > > (import (box2d-lite vec)) > (is-vec v) > > works fine in Ikarus, Chez, and Mosh. But Ypsilon has trouble with it: > > error: attempt to reference unbound identifier x > > (define-field-syntax v vec x) > ..."/dev/stdin" > > expanding: > > (define-field-syntax v vec x) > ..."/dev/stdin" > * (is-vec v) > ..."/dev/stdin" line 1 > > I'm wondering if I've stretched the boundaries of portability with > 'define-record-type++'? :-)
I don't know, I'd have to thoroughly review, but I doubt it because if you're only using the R6RS API and things built on that, it's supposed to be portable. I suspect the problem is with Ypsilon's known unfixed hygiene issues. You can try Larceny (in --err5rs mode or --r6rs --program mode) (you'll need explicit-phasing import syntax for non-0 phases), it doesn't use psyntax. You can also try PLT (if you have #!r6rs at top and explicit non-0 phases), which also has a unique syntax-case implementation. -- : Derick ----------------------------------------------------------------
