From 7209b762392983d5fb9e667d4f3a309defe62e8b Mon Sep 17 00:00:00 2001 From: Matthew Flatt Date: Tue, 9 Aug 2005 13:41:06 +0000 Subject: [PATCH] 299.201 svn: r572 original commit: 4ad1f381419081362c07a66fb5e19db5834b7304 --- collects/mzlib/struct.ss | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/collects/mzlib/struct.ss b/collects/mzlib/struct.ss index cf76772..680c59c 100644 --- a/collects/mzlib/struct.ss +++ b/collects/mzlib/struct.ss @@ -53,7 +53,7 @@ (let ([dests (map (lambda (field) - (or (ormap (lambda (f2) (and (module-or-top-identifier=? field f2) f2)) accessors) + (or (ormap (lambda (f2) (and f2 (module-or-top-identifier=? field f2) f2)) accessors) (raise-syntax-error #f "accessor name not associated with the given structure type" stx field))) as)]) ;; Check for duplicates using dests, not as, because mod=? as might not be id=? @@ -64,7 +64,8 @@ stx ;; Map back to an original field: (ormap (lambda (a) - (and (module-or-top-identifier=? dupe a) + (and a + (module-or-top-identifier=? dupe a) a)) (reverse as))))))