Hi, Andy Wingo <wi...@pobox.com> writes:
> But you have to, I think. If that module that contained the above > define-syntactic-accessor expansion exports "foo", then in another > module you have: > > (define bar (lambda () (foo))) > > which expands to > > (define bar (lambda () val-234123)) > > Val needs to be named. FWIW I had this problem back when ‘define-wrapped-pointer-type’ generated the SRFI-9 record name (recall that SRFI-9 accessors, constructors, and type predicates are macros, which refer to the global variable that holds the vtable.) The solution I chose was to let users provided the record name, like ‘define-record-type’ does (de6fb1875d1a7e8d2a39ec8eba753c07abcd4263). Thanks, Ludo’.